PageBlockCollage.fromJson constructor

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

Parse from a json

Implementation

factory PageBlockCollage.fromJson(Map<String, dynamic> json) =>
    PageBlockCollage(
      pageBlocks: List<PageBlock>.from((json['page_blocks'] ?? [])
          .map((item) => PageBlock.fromJson(item))
          .toList()),
      caption: PageBlockCaption.fromJson(json['caption']),
    );