Comment.fromGraphJson constructor

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

Implementation

factory Comment.fromGraphJson(Map<String, dynamic> json) => Comment(
      email: ((json['node'] ?? const {})['author'] ?? const {})['email'],
      name: ((json['node'] ?? const {})['author'] ?? const {})['name'],
      content: (json['node'] ?? const {})['content'],
      contentHtml: (json['node'] ?? const {})['contentHtml'],
      id: (json['node'] ?? const {})['id'],
    );