PageBlockDetails.fromJson constructor

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

Parse from a json

Implementation

factory PageBlockDetails.fromJson(Map<String, dynamic> json) => PageBlockDetails(
  header: RichText.fromJson(json['header']),
  pageBlocks: List<PageBlock>.from((json['page_blocks'] ?? []).map((item) => PageBlock.fromJson(item)).toList()),
  isOpen: json['is_open'],
);