ContainerStartedEvent.fromJson constructor

ContainerStartedEvent.fromJson(
  1. Map _json
)

Implementation

ContainerStartedEvent.fromJson(core.Map _json)
    : this(
        actionId: _json.containsKey('actionId')
            ? _json['actionId'] as core.int
            : null,
        ipAddress: _json.containsKey('ipAddress')
            ? _json['ipAddress'] as core.String
            : null,
        portMappings: _json.containsKey('portMappings')
            ? (_json['portMappings'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.int,
                ),
              )
            : null,
      );