toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'model'] = this.model;
  if (this.input != null) {
    json[r'input'] = this.input;
  } else {
    json[r'input'] = null;
  }
    json[r'instruction'] = this.instruction;
  if (this.n != null) {
    json[r'n'] = this.n;
  } else {
    json[r'n'] = null;
  }
  if (this.temperature != null) {
    json[r'temperature'] = this.temperature;
  } else {
    json[r'temperature'] = null;
  }
  if (this.topP != null) {
    json[r'top_p'] = this.topP;
  } else {
    json[r'top_p'] = null;
  }
  return json;
}