ReactionForComment.fromJson constructor
ReactionForComment.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ReactionForComment.fromJson(Map<String, dynamic> json) {
return ReactionForComment(
reaction: json['reaction'] != null
? ReactionValueFormats.fromJson(
json['reaction'] as Map<String, dynamic>)
: null,
reactionUsers: (json['reactionUsers'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
reactionsFromDeletedUsersCount:
json['reactionsFromDeletedUsersCount'] as int?,
);
}