You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
416 B
Dart
18 lines
416 B
Dart
class LoginRequest {
|
|
int userID;
|
|
String password;
|
|
|
|
LoginRequest({this.userID, this.password});
|
|
|
|
LoginRequest.fromJson(Map<String, dynamic> json) {
|
|
userID = json['UserID'];
|
|
password = json['Password'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['UserID'] = this.userID;
|
|
data['Password'] = this.password;
|
|
return data;
|
|
}
|
|
} |