BMFBaseIndoorMapInfo.fromMap constructor

BMFBaseIndoorMapInfo.fromMap(
  1. Map map
)

map => BMFBaseIndoorMapInfo

Implementation

BMFBaseIndoorMapInfo.fromMap(Map map)
    : assert(map != null,
          'Construct a BMFBaseIndoorMapInfo,The parameter map cannot be null') {
  strID = map['strID'];
  strFloor = map['strFloor'];
  if (map['listStrFloors'] != null) {
    listStrFloors = new List<String>();
    map['listStrFloors'].forEach((v) {
      listStrFloors.add(v as String);
    });
  }
}