StateModel.fromJson constructor
Implementation
factory StateModel.fromJson(Map<String, dynamic> json) {
return StateModel(
id: json['id'] as String,
name: json['name'] as String,
countryId: json['country_id'] as String,
stateCode: json['state_code'] as String?,
type: json['type'] as String?,
);
}