Page.fromGraphJson constructor
The Page from graph json
Implementation
factory Page.fromGraphJson(Map<String, dynamic> json) => Page(
id: (json['node'] ?? {})['id'],
handle: (json['node'] ?? {})['handle'],
title: (json['node'] ?? {})['title'],
onlineStoreUrl: (json['node'] ?? {})['onlineStoreUrl'],
body: (json['node'] ?? {})['body'],
bodySummary: (json['node'] ?? {})['bodySummary'],
createdAt: DateTime.parse(((json['node'] ?? const {})['createdAt'])),
updatedAt: DateTime.parse(((json['node'] ?? const {})['updatedAt'])),
);