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'] = this.created;
  if (this.model != null) {
    json[r'model'] = this.model;
  } else {
    json[r'model'] = null;
  }
    json[r'choices'] = this.choices;
  return json;
}