mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 09:00:47 +00:00
19 lines
381 B
Dart
19 lines
381 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'login.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class LoginReq {
|
|
String username;
|
|
String password;
|
|
|
|
LoginReq({
|
|
required this.username,
|
|
required this.password,
|
|
});
|
|
|
|
factory LoginReq.fromJson(Map<String, dynamic> json) =>
|
|
_$LoginReqFromJson(json);
|
|
Map<String, dynamic> toJson() => _$LoginReqToJson(this);
|
|
}
|