| 1234567891011121314151617181920212223 |
- import 'package:json_annotation/json_annotation.dart';
- part 'login_req.g.dart';
- @JsonSerializable()
- class LoginReq {
- final String? username;
- final String? password;
- /// 登录平台: 0=web 1=app
- final int? platform;
- const LoginReq({
- this.username,
- this.password,
- this.platform = 1,
- });
- factory LoginReq.fromJson(Map<String, dynamic> json) => _$LoginReqFromJson(json);
- Map<String, dynamic> toJson() => _$LoginReqToJson(this);
- }
|