SasPortalDevice.fromJson constructor
SasPortalDevice.fromJson(
- Map json_
Implementation
SasPortalDevice.fromJson(core.Map json_)
: this(
activeConfig: json_.containsKey('activeConfig')
? SasPortalDeviceConfig.fromJson(
json_['activeConfig'] as core.Map<core.String, core.dynamic>)
: null,
currentChannels: json_.containsKey('currentChannels')
? (json_['currentChannels'] as core.List)
.map((value) => SasPortalChannelWithScore.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
deviceMetadata: json_.containsKey('deviceMetadata')
? SasPortalDeviceMetadata.fromJson(json_['deviceMetadata']
as core.Map<core.String, core.dynamic>)
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
fccId:
json_.containsKey('fccId') ? json_['fccId'] as core.String : null,
grantRangeAllowlists: json_.containsKey('grantRangeAllowlists')
? (json_['grantRangeAllowlists'] as core.List)
.map((value) => SasPortalFrequencyRange.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
grants: json_.containsKey('grants')
? (json_['grants'] as core.List)
.map((value) => SasPortalDeviceGrant.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
preloadedConfig: json_.containsKey('preloadedConfig')
? SasPortalDeviceConfig.fromJson(json_['preloadedConfig']
as core.Map<core.String, core.dynamic>)
: null,
serialNumber: json_.containsKey('serialNumber')
? json_['serialNumber'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
);