ApiKeyInfo.fromJson constructor

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

Implementation

factory ApiKeyInfo.fromJson(Map<String, dynamic> json) {
  return ApiKeyInfo(
    id: json['id'] as String? ?? '',
    name: json['name'] as String? ?? '',
    context: json['context'] as String? ?? '',
    totalRequests: json['totalRequests'] as int? ?? 0,
  );
}