District.fromMap constructor

District.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory District.fromMap(Map<String, dynamic> map) {
  return District(
    id: (map['id'].toInt() ?? 0) as int,
    zoneid: (map['zoneid'].toInt() ?? 0) as int,
    stateid: (map['stateid'].toInt() ?? 0) as int,
    textEN: (map['text'] ?? '') as String,
    textNP: (map['textNP'] ?? '') as String,
  );
}