toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final destination = this.destination;
  final eventTypes = this.eventTypes;
  final transport = this.transport;
  final version = this.version;
  return {
    'Destination': destination,
    'EventTypes': eventTypes.map((e) => e.toValue()).toList(),
    'Transport': transport.toValue(),
    'Version': version,
  };
}