SasPortalDeviceGrant.fromJson constructor
SasPortalDeviceGrant.fromJson(
- Map json_
Implementation
SasPortalDeviceGrant.fromJson(core.Map json_)
: this(
channelType: json_.containsKey('channelType')
? json_['channelType'] as core.String
: null,
expireTime: json_.containsKey('expireTime')
? json_['expireTime'] as core.String
: null,
frequencyRange: json_.containsKey('frequencyRange')
? SasPortalFrequencyRange.fromJson(json_['frequencyRange']
as core.Map<core.String, core.dynamic>)
: null,
grantId: json_.containsKey('grantId')
? json_['grantId'] as core.String
: null,
lastHeartbeatTransmitExpireTime:
json_.containsKey('lastHeartbeatTransmitExpireTime')
? json_['lastHeartbeatTransmitExpireTime'] as core.String
: null,
maxEirp: json_.containsKey('maxEirp')
? (json_['maxEirp'] as core.num).toDouble()
: null,
moveList: json_.containsKey('moveList')
? (json_['moveList'] as core.List)
.map((value) => SasPortalDpaMoveList.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
suspensionReason: json_.containsKey('suspensionReason')
? (json_['suspensionReason'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);