toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final blockSizeBytes = this.blockSizeBytes;
  final compression = this.compression;
  final enableDictionaryCompression = this.enableDictionaryCompression;
  final maxPaddingBytes = this.maxPaddingBytes;
  final pageSizeBytes = this.pageSizeBytes;
  final writerVersion = this.writerVersion;
  return {
    if (blockSizeBytes != null) 'BlockSizeBytes': blockSizeBytes,
    if (compression != null) 'Compression': compression.toValue(),
    if (enableDictionaryCompression != null)
      'EnableDictionaryCompression': enableDictionaryCompression,
    if (maxPaddingBytes != null) 'MaxPaddingBytes': maxPaddingBytes,
    if (pageSizeBytes != null) 'PageSizeBytes': pageSizeBytes,
    if (writerVersion != null) 'WriterVersion': writerVersion.toValue(),
  };
}