SendWorkerMessagesRequest.fromJson constructor

SendWorkerMessagesRequest.fromJson(
  1. Map _json
)

Implementation

SendWorkerMessagesRequest.fromJson(core.Map _json)
    : this(
        location: _json.containsKey('location')
            ? _json['location'] as core.String
            : null,
        workerMessages: _json.containsKey('workerMessages')
            ? (_json['workerMessages'] as core.List)
                .map<WorkerMessage>((value) => WorkerMessage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );