Event.fromJson constructor

Event.fromJson(
  1. Map _json
)

Implementation

Event.fromJson(core.Map _json)
    : this(
        containerKilled: _json.containsKey('containerKilled')
            ? ContainerKilledEvent.fromJson(_json['containerKilled']
                as core.Map<core.String, core.dynamic>)
            : null,
        containerStarted: _json.containsKey('containerStarted')
            ? ContainerStartedEvent.fromJson(_json['containerStarted']
                as core.Map<core.String, core.dynamic>)
            : null,
        containerStopped: _json.containsKey('containerStopped')
            ? ContainerStoppedEvent.fromJson(_json['containerStopped']
                as core.Map<core.String, core.dynamic>)
            : null,
        delayed: _json.containsKey('delayed')
            ? DelayedEvent.fromJson(
                _json['delayed'] as core.Map<core.String, core.dynamic>)
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        failed: _json.containsKey('failed')
            ? FailedEvent.fromJson(
                _json['failed'] as core.Map<core.String, core.dynamic>)
            : null,
        pullStarted: _json.containsKey('pullStarted')
            ? PullStartedEvent.fromJson(
                _json['pullStarted'] as core.Map<core.String, core.dynamic>)
            : null,
        pullStopped: _json.containsKey('pullStopped')
            ? PullStoppedEvent.fromJson(
                _json['pullStopped'] as core.Map<core.String, core.dynamic>)
            : null,
        timestamp: _json.containsKey('timestamp')
            ? _json['timestamp'] as core.String
            : null,
        unexpectedExitStatus: _json.containsKey('unexpectedExitStatus')
            ? UnexpectedExitStatusEvent.fromJson(_json['unexpectedExitStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        workerAssigned: _json.containsKey('workerAssigned')
            ? WorkerAssignedEvent.fromJson(_json['workerAssigned']
                as core.Map<core.String, core.dynamic>)
            : null,
        workerReleased: _json.containsKey('workerReleased')
            ? WorkerReleasedEvent.fromJson(_json['workerReleased']
                as core.Map<core.String, core.dynamic>)
            : null,
      );