PageBlockVideo.fromJson constructor

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

Parse from a json

Implementation

factory PageBlockVideo.fromJson(Map<String, dynamic> json) => PageBlockVideo(
      video: json['video'] == null ? null : Video.fromJson(json['video']),
      caption: PageBlockCaption.fromJson(json['caption']),
      needAutoplay: json['need_autoplay'],
      isLooped: json['is_looped'],
    );