toJson method

Map<String, dynamic> toJson()

Implementation

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