toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.document != null) {
    json[r'document'] = this.document;
  } else {
    json[r'document'] = null;
  }
  if (this.text != null) {
    json[r'text'] = this.text;
  } else {
    json[r'text'] = null;
  }
  if (this.label != null) {
    json[r'label'] = this.label;
  } else {
    json[r'label'] = null;
  }
  return json;
}