Building.fromJson constructor

Building.fromJson(
  1. Map json_
)

Implementation

Building.fromJson(core.Map json_)
    : this(
        address: json_.containsKey('address')
            ? BuildingAddress.fromJson(
                json_['address'] as core.Map<core.String, core.dynamic>)
            : null,
        buildingId: json_.containsKey('buildingId')
            ? json_['buildingId'] as core.String
            : null,
        buildingName: json_.containsKey('buildingName')
            ? json_['buildingName'] as core.String
            : null,
        coordinates: json_.containsKey('coordinates')
            ? BuildingCoordinates.fromJson(
                json_['coordinates'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        etags:
            json_.containsKey('etags') ? json_['etags'] as core.String : null,
        floorNames: json_.containsKey('floorNames')
            ? (json_['floorNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
      );