ListCollectionIdsRequest.fromJson constructor

ListCollectionIdsRequest.fromJson(
  1. Object? j
)

Implementation

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