Map<String, dynamic> toJson() => { "id": id, "object": object, "created": created, "model": model, "choices": choices.map((e) => e.toJson()).toList(), "usage": usage.toJson(), 'error': error.toJson(), };