class AuthModel { String? username; String? password; AuthModel({this.username, this.password}); AuthModel.fromJson(Map json) { username = json['username']; password = json['password']; } Map toJson() { final Map data = {}; data['username'] = username; data['password'] = password; return data; } }