WorkerShutdownNotice.fromJson constructor

WorkerShutdownNotice.fromJson(
  1. Map _json
)

Implementation

WorkerShutdownNotice.fromJson(core.Map _json)
    : this(
        reason: _json.containsKey('reason')
            ? _json['reason'] as core.String
            : null,
      );