WorkerMessageCode.fromJson constructor

WorkerMessageCode.fromJson(
  1. Map _json
)

Implementation

WorkerMessageCode.fromJson(core.Map _json)
    : this(
        code: _json.containsKey('code') ? _json['code'] as core.String : null,
        parameters: _json.containsKey('parameters')
            ? (_json['parameters'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.Object,
                ),
              )
            : null,
      );