PageBlockEmbedded.fromJson constructor

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

Parse from a json

Implementation

factory PageBlockEmbedded.fromJson(Map<String, dynamic> json) =>
    PageBlockEmbedded(
      url: json['url'],
      html: json['html'],
      posterPhoto: json['poster_photo'] == null
          ? null
          : Photo.fromJson(json['poster_photo']),
      width: json['width'],
      height: json['height'],
      caption: PageBlockCaption.fromJson(json['caption']),
      isFullWidth: json['is_full_width'],
      allowScrolling: json['allow_scrolling'],
    );