toJson method

Map<String, dynamic> toJson()

Method to convert GroupEvent instance into a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type,
    'group': group.toJson(),
  };
}