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