AddressStringFormat_Hex.fromMap(Map<String, dynamic> map) { if (!map.containsKey('type') || map['type'] != 'Hex') { throw ('Wrong map data'); } else { _type = 'Hex'; } }