Usage.fromMap constructor

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

Implementation

factory Usage.fromMap(Map<String, dynamic> json) {
  return Usage(
    promptTokens: json['prompt_tokens'],
    completionTokens: json['completion_tokens'],
    totalTokens: json['total_tokens'],
  );
}