toJson method
Implementation
Map<String, dynamic> toJson() {
final namespaceName = this.namespaceName;
final serviceName = this.serviceName;
final attributes = this.attributes;
return {
'namespaceName': namespaceName,
'serviceName': serviceName,
if (attributes != null) 'attributes': attributes,
};
}