You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
382B

  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'user_request.g.dart';
  3. @JsonSerializable()
  4. class UserRequest {
  5. final String username;
  6. final String password;
  7. UserRequest({this.username, this.password});
  8. factory UserRequest.fromJson(Map<String, dynamic> json) =>
  9. _$UserRequestFromJson(json);
  10. Map<String, dynamic> toJson() => _$UserRequestToJson(this);
  11. }