toJson method

Map<String, Object?> toJson()

Implementation

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

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