Blog.fromGraphJson constructor

Blog.fromGraphJson(
  1. Map<String, dynamic> json
)

The blog from json

Implementation

factory Blog.fromGraphJson(Map<String, dynamic> json) => Blog(
      id: (json['node'] ?? {})['id'],
      handle: (json['node'] ?? {})['handle'],
      title: (json['node'] ?? {})['title'],
      onlineStoreUrl: (json['node'] ?? {})['onlineStoreUrl'],
      articles: Articles.fromGraphJson(
        ((json['node'] ?? const {})['articles']) ?? const {},
      ),
    );