toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var expand = this.expand;
  var parameter = this.parameter;
  var type = this.type;
  var value = this.value;

  final json = <String, Object?>{};
  if (expand != null) {
    json[r'expand'] = expand;
  }
  if (parameter != null) {
    json[r'parameter'] = parameter;
  }
  json[r'type'] = type;
  if (value != null) {
    json[r'value'] = value;
  }
  return json;
}