ReactionCount.fromMap constructor
ReactionCount.fromMap(
- dynamic map
Creates a new ReactionCount
instance from a 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);
}