toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var displayName = this.displayName;
  var isList = this.isList;
  var types = this.types;
  var value = this.value;

  final json = <String, Object?>{};
  if (displayName != null) {
    json[r'displayName'] = displayName;
  }
  if (isList != null) {
    json[r'isList'] = isList.value;
  }
  json[r'types'] = types;
  if (value != null) {
    json[r'value'] = value;
  }
  return json;
}