Location.fromJson constructor
Location.fromJson(
- Map json_
Implementation
Location.fromJson(core.Map json_)
: this(
buildingId: json_.containsKey('buildingId')
? json_['buildingId'] as core.String
: null,
current: json_.containsKey('current')
? json_['current'] as core.bool
: null,
deskCode: json_.containsKey('deskCode')
? json_['deskCode'] as core.String
: null,
floor:
json_.containsKey('floor') ? json_['floor'] as core.String : null,
floorSection: json_.containsKey('floorSection')
? json_['floorSection'] as core.String
: null,
metadata: json_.containsKey('metadata')
? FieldMetadata.fromJson(
json_['metadata'] as core.Map<core.String, core.dynamic>)
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
value:
json_.containsKey('value') ? json_['value'] as core.String : null,
);