Usage.fromJson constructor

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

Implementation

factory Usage.fromJson(Map<String, dynamic> json) => Usage(
  promptTokens: json["prompt_tokens"],
  completionTokens: json["completion_tokens"],
  totalTokens: json["total_tokens"],
);