toJson method
Implementation
@override
Map<String, dynamic> toJson() {
var json = super.toJson();
if (tenantId != null) {
json['tenantId'] = tenantId!.toJson();
}
json['deviceProfileId'] = deviceProfileId.toJson();
json['type'] = type.toShortString();
json['title'] = title;
json['version'] = version;
if (url != null) {
json['url'] = url;
}
if (hasData != null) {
json['hasData'] = hasData;
}
if (fileName != null) {
json['fileName'] = fileName;
}
if (contentType != null) {
json['contentType'] = contentType;
}
if (checksumAlgorithm != null) {
json['checksumAlgorithm'] = checksumAlgorithm!.toShortString();
}
if (checksum != null) {
json['checksum'] = checksum;
}
if (dataSize != null) {
json['dataSize'] = dataSize;
}
return json;
}