EventTrigger.fromJson constructor

EventTrigger.fromJson(
  1. Map json_
)

Implementation

EventTrigger.fromJson(core.Map json_)
    : this(
        channel: json_.containsKey('channel')
            ? json_['channel'] as core.String
            : null,
        eventFilters: json_.containsKey('eventFilters')
            ? (json_['eventFilters'] as core.List)
                .map((value) => EventFilter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        eventType: json_.containsKey('eventType')
            ? json_['eventType'] as core.String
            : null,
        pubsubTopic: json_.containsKey('pubsubTopic')
            ? json_['pubsubTopic'] as core.String
            : null,
        retryPolicy: json_.containsKey('retryPolicy')
            ? json_['retryPolicy'] as core.String
            : null,
        service: json_.containsKey('service')
            ? json_['service'] as core.String
            : null,
        serviceAccountEmail: json_.containsKey('serviceAccountEmail')
            ? json_['serviceAccountEmail'] as core.String
            : null,
        trigger: json_.containsKey('trigger')
            ? json_['trigger'] as core.String
            : null,
        triggerRegion: json_.containsKey('triggerRegion')
            ? json_['triggerRegion'] as core.String
            : null,
      );