GetCommentReactionsOutput.fromJson constructor

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

Implementation

factory GetCommentReactionsOutput.fromJson(Map<String, dynamic> json) {
  return GetCommentReactionsOutput(
    reactionsForComment: (json['reactionsForComment'] as List)
        .whereNotNull()
        .map((e) => ReactionForComment.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}