AiFeatureUsage.fromJson constructor

AiFeatureUsage.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AiFeatureUsage.fromJson(Map<String, Object?> json) => AiFeatureUsage(
  feature: json['feature'] as String,
  label: json['label'] as String,
  requests: (json['requests'] as num).toInt(),
  costUsd: (json['costUsd'] as num).toDouble(),
);