toJson method

Map<String, dynamic> toJson()

Implementation

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