import 'package:json_annotation/json_annotation.dart';

import '../../../base/app_base_request.dart';

part 'login_request.g.dart';

@JsonSerializable()
class LoginRequest extends AppBaseRequest {
  @JsonKey(name: "phone")
  late String phone;

  @JsonKey(name: "code")
  late String code;

  LoginRequest(this.phone, this.code);

  @override
  Map<String, dynamic> toJson() => _$LoginRequestToJson(this);
}