19 lines
408 B
Dart
19 lines
408 B
Dart
|
class AuthModel {
|
||
|
String? username;
|
||
|
String? password;
|
||
|
|
||
|
AuthModel({this.username, this.password});
|
||
|
|
||
|
AuthModel.fromJson(Map<String, dynamic> json) {
|
||
|
username = json['username'];
|
||
|
password = json['password'];
|
||
|
}
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final Map<String, dynamic> data = <String, dynamic>{};
|
||
|
data['username'] = username;
|
||
|
data['password'] = password;
|
||
|
return data;
|
||
|
}
|
||
|
}
|