Trigger.fromJson constructor

Trigger.fromJson(
  1. Map json_
)

Implementation

Trigger.fromJson(core.Map json_)
    : this(
        channel: json_.containsKey('channel')
            ? json_['channel'] as core.String
            : null,
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  StateCondition.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        destination: json_.containsKey('destination')
            ? Destination.fromJson(
                json_['destination'] as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        eventDataContentType: json_.containsKey('eventDataContentType')
            ? json_['eventDataContentType'] 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,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        transport: json_.containsKey('transport')
            ? Transport.fromJson(
                json_['transport'] as core.Map<core.String, core.dynamic>)
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );