FileCodecs.fromJson constructor

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

Implementation

FileCodecs.fromJson(Map<String, dynamic> json) {
  if (json["hevc"] is Map)
    this.hevc = json["hevc"] == null ? null : Hevc.fromJson(json["hevc"]);
  if (json["av1"] is List)
    this.av1 = json["av1"] == null ? null : List<String>.from(json["av1"]);
  if (json["avc"] is List)
    this.avc = json["avc"] == null ? null : List<String>.from(json["avc"]);
}