PollItemsRequest.fromJson constructor

PollItemsRequest.fromJson(
  1. Map json_
)

Implementation

PollItemsRequest.fromJson(core.Map json_)
    : this(
        connectorName: json_.containsKey('connectorName')
            ? json_['connectorName'] as core.String
            : null,
        debugOptions: json_.containsKey('debugOptions')
            ? DebugOptions.fromJson(
                json_['debugOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        limit: json_.containsKey('limit') ? json_['limit'] as core.int : null,
        queue:
            json_.containsKey('queue') ? json_['queue'] as core.String : null,
        statusCodes: json_.containsKey('statusCodes')
            ? (json_['statusCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );