District.fromJson constructor

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

Implementation

factory District.fromJson(Map<String, dynamic> json) {
  return District(
    id: json['id'],
    provinceId: json['province_id'],
    nameEn: json['name_en'],
    nameSi: json['name_si'],
    nameTa: json['name_ta'],
  );
}