VideoInfo.fromJson constructor

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

Implementation

factory VideoInfo.fromJson(Map<String, dynamic> json) => new VideoInfo(
      aspectRatio: json["aspect_ratio"] == null
          ? []
          : new List<int>.from(json["aspect_ratio"].map((x) => x)),
      durationMillis:
          json["duration_millis"] == null ? null : json["duration_millis"],
      variants: json["variants"] == null
          ? []
          : new List<Variant>.from(
              json["variants"].map((x) => Variant.fromJson(x))),
    );