toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "choices": choices == null ? [] : List<dynamic>.from(choices!.map((x) => x.toJson())),
  "usage": usage?.toJson(),
};