class LoginRequest { int userID; String password; LoginRequest({this.userID, this.password}); LoginRequest.fromJson(Map json) { userID = json['UserID']; password = json['Password']; } Map toJson() { final Map data = new Map(); data['UserID'] = this.userID; data['Password'] = this.password; return data; } }