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.model != null) {
    json[r'model'] = this.model;
  } else {
    json[r'model'] = null;
  }
  if (this.searchModel != null) {
    json[r'search_model'] = this.searchModel;
  } else {
    json[r'search_model'] = null;
  }
  if (this.completion != null) {
    json[r'completion'] = this.completion;
  } else {
    json[r'completion'] = null;
  }
  if (this.label != null) {
    json[r'label'] = this.label;
  } else {
    json[r'label'] = null;
  }
    json[r'selected_examples'] = this.selectedExamples;
  return json;
}