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,
      );