PartitionQueryResponse.fromJson constructor

PartitionQueryResponse.fromJson(
  1. Map _json
)

Implementation

PartitionQueryResponse.fromJson(core.Map _json)
    : this(
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
        partitions: _json.containsKey('partitions')
            ? (_json['partitions'] as core.List)
                .map((value) => Cursor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );