toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'object'] = this.object;
    json[r'created_at'] = this.createdAt;
    json[r'updated_at'] = this.updatedAt;
    json[r'model'] = this.model;
  if (this.fineTunedModel != null) {
    json[r'fine_tuned_model'] = this.fineTunedModel;
  } else {
    json[r'fine_tuned_model'] = null;
  }
    json[r'organization_id'] = this.organizationId;
    json[r'status'] = this.status;
    json[r'hyperparams'] = this.hyperparams;
    json[r'training_files'] = this.trainingFiles;
    json[r'validation_files'] = this.validationFiles;
    json[r'result_files'] = this.resultFiles;
    json[r'events'] = this.events;
  return json;
}