toJson method
Implementation
@override
Map<String, dynamic> toJson() {
var json = super.toJson();
if (tenantId != null) {
json['tenantId'] = tenantId!.toJson();
}
if (customerId != null) {
json['customerId'] = customerId!.toJson();
}
json['name'] = name;
json['type'] = type;
if (label != null) {
json['label'] = label;
}
json['routingKey'] = routingKey;
json['secret'] = secret;
json['edgeLicenseKey'] = edgeLicenseKey;
json['cloudEndpoint'] = cloudEndpoint;
return json;
}