PartitionQueryRequest.fromJson constructor

PartitionQueryRequest.fromJson(
  1. Object? j
)

Implementation

factory PartitionQueryRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return PartitionQueryRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    structuredQuery: switch (json['structuredQuery']) {
      null => null,
      Object $1 => StructuredQuery.fromJson($1),
    },
    partitionCount: switch (json['partitionCount']) {
      null => 0,
      Object $1 => decodeInt64($1),
    },
    pageToken: switch (json['pageToken']) {
      null => '',
      Object $1 => decodeString($1),
    },
    pageSize: switch (json['pageSize']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
    readTime: switch (json['readTime']) {
      null => null,
      Object $1 => Timestamp.fromJson($1),
    },
  );
}