toJson method

Map<String, dynamic> toJson()

Implementation

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