DeviceProfileInfo.fromJson constructor

DeviceProfileInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

DeviceProfileInfo.fromJson(Map<String, dynamic> json)
    : type = deviceProfileTypeFromString(json['type']),
      transportType = deviceTransportTypeFromString(json['transportType']),
      defaultDashboardId = json['defaultDashboardId'] != null
          ? DashboardId.fromJson(json['defaultDashboardId'])
          : null,
      image = json['image'],
      tenantId = TenantId.fromJson(json['tenantId']),
      super.fromJson(json);