AutoscalingEvent.fromJson constructor

AutoscalingEvent.fromJson(
  1. Map _json
)

Implementation

AutoscalingEvent.fromJson(core.Map _json)
    : this(
        currentNumWorkers: _json.containsKey('currentNumWorkers')
            ? _json['currentNumWorkers'] as core.String
            : null,
        description: _json.containsKey('description')
            ? StructuredMessage.fromJson(
                _json['description'] as core.Map<core.String, core.dynamic>)
            : null,
        eventType: _json.containsKey('eventType')
            ? _json['eventType'] as core.String
            : null,
        targetNumWorkers: _json.containsKey('targetNumWorkers')
            ? _json['targetNumWorkers'] as core.String
            : null,
        time: _json.containsKey('time') ? _json['time'] as core.String : null,
        workerPool: _json.containsKey('workerPool')
            ? _json['workerPool'] as core.String
            : null,
      );