toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'parent': parent,
  if (collectionId.isNotDefault) 'collectionId': collectionId,
  if (pageSize.isNotDefault) 'pageSize': pageSize,
  if (pageToken.isNotDefault) 'pageToken': pageToken,
  if (orderBy.isNotDefault) 'orderBy': orderBy,
  if (mask case final mask?) 'mask': mask.toJson(),
  if (transaction case final transaction?)
    'transaction': encodeBytes(transaction),
  if (readTime case final readTime?) 'readTime': readTime.toJson(),
  if (showMissing.isNotDefault) 'showMissing': showMissing,
};