toJson method

Map<String, dynamic> toJson()

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,
  };
}