Map<String, dynamic> toJson() { return { 'id': id, 'name': name, 'country_id': countryId, 'state_code': stateCode, 'type': type, }; }