toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final topic = this.topic;
  final type = this.type;
  return {
    'topic': topic,
    'type': type.toValue(),
  };
}