OtaPackageInfo.fromJson constructor

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

Implementation

OtaPackageInfo.fromJson(Map<String, dynamic> json)
    : tenantId = json['tenantId'] != null
          ? TenantId.fromJson(json['tenantId'])
          : null,
      deviceProfileId = DeviceProfileId.fromJson(json['deviceProfileId']),
      type = otaPackageTypeFromString(json['type']),
      title = json['title'],
      version = json['version'],
      url = json['url'],
      hasData = json['hasData'],
      fileName = json['fileName'],
      contentType = json['contentType'],
      checksumAlgorithm = json['checksumAlgorithm'] != null
          ? checksumAlgorithmFromString(json['checksumAlgorithm'])
          : null,
      checksum = json['checksum'],
      dataSize = json['dataSize'],
      super.fromJson(json);