toJson method
Implementation
@override
Map<String, dynamic> toJson() {
var json = super.toJson();
if (tenantId != null) {
json['tenantId'] = tenantId!.toJson();
}
json['defaultConverterId'] = defaultConverterId.toJson();
if (downlinkConverterId != null) {
json['downlinkConverterId'] = downlinkConverterId!.toJson();
}
json['name'] = name;
json['routingKey'] = routingKey;
json['type'] = type.toShortString();
if (debugMode != null) {
json['debugMode'] = debugMode;
}
if (enabled != null) {
json['enabled'] = enabled;
}
if (remote != null) {
json['remote'] = remote;
}
if (allowCreateDevicesOrAssets != null) {
json['allowCreateDevicesOrAssets'] = allowCreateDevicesOrAssets;
}
if (secret != null) {
json['secret'] = secret;
}
json['configuration'] = configuration;
if (externalId != null) {
json['externalId'] = externalId!.toJson();
}
return json;
}