toJson method

Map<String, dynamic> toJson()

Generates a map representing the ReactionCount.

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['reaction'] = this.reaction;
  data['count'] = this.count;
  data['reactedByMe'] = this.reactedByMe;
  return data;
}