CountTokensRequest.fromJson constructor

CountTokensRequest.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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