MediaUsage.fromJson constructor

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

Lenient, because it also reads the referrers inside an error body.

Implementation

factory MediaUsage.fromJson(Map<String, Object?> json) => MediaUsage(
  json['media_id'] as String? ?? '',
  json['project'] as String? ?? '',
  json['env'] as String? ?? '',
  json['collection'] as String? ?? '',
  json['entry_id'] as String? ?? '',
);