toJson method

Map<String, Object?> toJson()

Implementation

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

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