class UserRoleModel { int? id; String? name; UserRoleModel({ this.id, this.name, }); UserRoleModel.fromJson(Map json) { id = json['id']; name = json['name'] != null ? json['name'] : null; } Map toJson() { return { 'id': id, 'name': name, }; } }