Blog.fromGraphJson constructor

Blog.fromGraphJson(
  1. Map<String, dynamic> 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 {},
      ),
    );