LocalLevel.fromMap constructor

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

Implementation

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