WebPageInstantView.fromJson constructor

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

Parse from a json

Implementation

factory WebPageInstantView.fromJson(Map<String, dynamic> json) => WebPageInstantView(
  pageBlocks: List<PageBlock>.from((json['page_blocks'] ?? []).map((item) => PageBlock.fromJson(item)).toList()),
  viewCount: json['view_count'],
  version: json['version'],
  isRtl: json['is_rtl'],
  isFull: json['is_full'],
  feedbackLink: InternalLinkType.fromJson(json['feedback_link']),
  extra: json['@extra'],
  clientId: json['@client_id'],
);