ReactionCount.fromMap constructor

ReactionCount.fromMap(
  1. 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
  );
}