toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  switch ($$typename) {
    case r'SubscriptionInitialized':
      return (this
              as BlocklistEvents$Subscription$BlocklistEvents$SubscriptionInitialized)
          .toJson();
    case r'Blocklist':
      return (this as BlocklistEvents$Subscription$BlocklistEvents$Blocklist)
          .toJson();
    case r'BlocklistEventsVersioned':
      return (this
              as BlocklistEvents$Subscription$BlocklistEvents$BlocklistEventsVersioned)
          .toJson();
    default:
  }
  return _$BlocklistEvents$Subscription$BlocklistEventsToJson(this);
}