login_req.dart 461 B

1234567891011121314151617181920212223
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'login_req.g.dart';
  3. @JsonSerializable()
  4. class LoginReq {
  5. final String? username;
  6. final String? password;
  7. /// 登录平台: 0=web 1=app
  8. final int? platform;
  9. const LoginReq({
  10. this.username,
  11. this.password,
  12. this.platform = 1,
  13. });
  14. factory LoginReq.fromJson(Map<String, dynamic> json) => _$LoginReqFromJson(json);
  15. Map<String, dynamic> toJson() => _$LoginReqToJson(this);
  16. }