Comment.fromJson constructor

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

Implementation

factory Comment.fromJson(Map<String, dynamic> json) => Comment(
      kind: json['kind'] as String?,
      etag: json['etag'] as String?,
      id: json['id'] as String?,
      snippet: json['snippet'] == null
          ? null
          : Snippet.fromJson(json['snippet'] as Map<String, dynamic>),
    );