Usage.fromJson constructor

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

Implementation

Usage.fromJson(Map<String, dynamic> json) {
  promptTokens = json['prompt_tokens'];
  completionTokens = json['completion_tokens'];
  totalTokens = json['total_tokens'];
}