DeviceProfile.fromJson constructor
DeviceProfile.fromJson(
- Map<String, dynamic> json
)
Implementation
DeviceProfile.fromJson(Map<String, dynamic> json)
: tenantId = TenantId.fromJson(json['tenantId']),
name = json['name'],
description = json['description'],
isDefault = json['default'],
type = deviceProfileTypeFromString(json['type']),
image = json['image'],
transportType = deviceTransportTypeFromString(json['transportType']),
provisionType =
deviceProfileProvisionTypeFromString(json['provisionType']),
provisionDeviceKey = json['provisionDeviceKey'],
defaultRuleChainId = json['defaultRuleChainId'] != null
? RuleChainId.fromJson(json['defaultRuleChainId'])
: null,
defaultDashboardId = json['defaultDashboardId'] != null
? DashboardId.fromJson(json['defaultDashboardId'])
: null,
defaultQueueName = json['defaultQueueName'],
firmwareId = json['firmwareId'] != null
? OtaPackageId.fromJson(json['firmwareId'])
: null,
softwareId = json['softwareId'] != null
? OtaPackageId.fromJson(json['softwareId'])
: null,
profileData = DeviceProfileData.fromJson(json['profileData']),
defaultEdgeRuleChainId = json['defaultEdgeRuleChainId'] != null
? RuleChainId.fromJson(json['defaultEdgeRuleChainId'])
: null,
externalId = json['externalId'] != null
? DeviceProfileId.fromJson(json['externalId'])
: null,
super.fromJson(json);