toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "model": model,
      "choices": List<dynamic>.from(choices.map((x) => x.toJson())),
    };