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