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,
);