toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (channel != null) 'channel': channel!,
      if (eventFilters != null) 'eventFilters': eventFilters!,
      if (eventType != null) 'eventType': eventType!,
      if (pubsubTopic != null) 'pubsubTopic': pubsubTopic!,
      if (retryPolicy != null) 'retryPolicy': retryPolicy!,
      if (service != null) 'service': service!,
      if (serviceAccountEmail != null)
        'serviceAccountEmail': serviceAccountEmail!,
      if (trigger != null) 'trigger': trigger!,
      if (triggerRegion != null) 'triggerRegion': triggerRegion!,
    };