mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-17 22:03:41 +00:00
15 lines
362 B
Dart
15 lines
362 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);
|
|
}
|