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