EventTrigger.fromJson constructor

EventTrigger.fromJson(
  1. Map _json
)

Implementation

EventTrigger.fromJson(core.Map _json)
    : this(
        eventType: _json.containsKey('eventType')
            ? _json['eventType'] as core.String
            : null,
        failurePolicy: _json.containsKey('failurePolicy')
            ? FailurePolicy.fromJson(
                _json['failurePolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        resource: _json.containsKey('resource')
            ? _json['resource'] as core.String
            : null,
        service: _json.containsKey('service')
            ? _json['service'] as core.String
            : null,
      );