fromGraphJson static method

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

Implementation

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