StateListResponse.fromJson constructor

StateListResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory StateListResponse.fromJson(Map<String, dynamic> json) {
  return StateListResponse(
    countryId: json['country_id'],
    id: json['id'],
    name: json['name'],
  );
}