CountTokensRequest.fromJson constructor
Implementation
factory CountTokensRequest.fromJson(Map<String, dynamic> json) {
return CountTokensRequest(
model: json['model'],
contents: List<InternalContent>.from(
json['contents'].map((x) => InternalContent.fromJson(x))),
);
}