ReactionCount.fromMap constructor
- dynamic map
Implementation
factory ReactionCount.fromMap(dynamic map) {
if (map == null) throw ArgumentError('The type of reaction map is null');
return ReactionCount(
reaction: map['reaction'] ?? '',
count: map['count'] ?? '',
reactedByMe: map['reactedByMe'] ?? false
);
}