toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "id": id,
      "object": object,
      "created": created,
      "model": model,
      "choices": List<dynamic>.from(choices!.map((x) => x.toMap())),
      "usage": usage?.toMap(),
    };