Province.fromMap constructor

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

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,
  );
}