toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var labels = this.labels;
  var expandable = this.expandable;

  final json = <String, Object?>{};
  if (labels != null) {
    json[r'labels'] = labels.toJson();
  }
  if (expandable != null) {
    json[r'_expandable'] = expandable;
  }
  return json;
}