fromGraphJson static method

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

Implementation

static Comment fromGraphJson(Map<String, dynamic> json) {
  return 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']);
}