VideoFiles.fromJson constructor

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

VideoFiles.fromJson Mapping object to VideoFiles

Implementation

factory VideoFiles.fromJson(Map<String, dynamic> json) {
  /// Return [VideoFiles]
  return VideoFiles(
      id: json['id'] as int?,
      width: json['width'] as int?,
      height: json['height'] as int?,
      fps: json['fps'] as double?,
      quality: json['quality'] as String?,
      fileType: json['file_type'] as String?,
      link: json['link'] as String?);
}