toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final blockSizeBytes = this.blockSizeBytes;
  final bloomFilterColumns = this.bloomFilterColumns;
  final bloomFilterFalsePositiveProbability =
      this.bloomFilterFalsePositiveProbability;
  final compression = this.compression;
  final dictionaryKeyThreshold = this.dictionaryKeyThreshold;
  final enablePadding = this.enablePadding;
  final formatVersion = this.formatVersion;
  final paddingTolerance = this.paddingTolerance;
  final rowIndexStride = this.rowIndexStride;
  final stripeSizeBytes = this.stripeSizeBytes;
  return {
    if (blockSizeBytes != null) 'BlockSizeBytes': blockSizeBytes,
    if (bloomFilterColumns != null) 'BloomFilterColumns': bloomFilterColumns,
    if (bloomFilterFalsePositiveProbability != null)
      'BloomFilterFalsePositiveProbability':
          bloomFilterFalsePositiveProbability,
    if (compression != null) 'Compression': compression.toValue(),
    if (dictionaryKeyThreshold != null)
      'DictionaryKeyThreshold': dictionaryKeyThreshold,
    if (enablePadding != null) 'EnablePadding': enablePadding,
    if (formatVersion != null) 'FormatVersion': formatVersion.toValue(),
    if (paddingTolerance != null) 'PaddingTolerance': paddingTolerance,
    if (rowIndexStride != null) 'RowIndexStride': rowIndexStride,
    if (stripeSizeBytes != null) 'StripeSizeBytes': stripeSizeBytes,
  };
}