Zone.fromMap constructor

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

Implementation

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