toJson method

Map<String, Object?> toJson()

Implementation

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

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