toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final type = this.type;
  final binaryColumnStatisticsData = this.binaryColumnStatisticsData;
  final booleanColumnStatisticsData = this.booleanColumnStatisticsData;
  final dateColumnStatisticsData = this.dateColumnStatisticsData;
  final decimalColumnStatisticsData = this.decimalColumnStatisticsData;
  final doubleColumnStatisticsData = this.doubleColumnStatisticsData;
  final longColumnStatisticsData = this.longColumnStatisticsData;
  final stringColumnStatisticsData = this.stringColumnStatisticsData;
  return {
    'Type': type.toValue(),
    if (binaryColumnStatisticsData != null)
      'BinaryColumnStatisticsData': binaryColumnStatisticsData,
    if (booleanColumnStatisticsData != null)
      'BooleanColumnStatisticsData': booleanColumnStatisticsData,
    if (dateColumnStatisticsData != null)
      'DateColumnStatisticsData': dateColumnStatisticsData,
    if (decimalColumnStatisticsData != null)
      'DecimalColumnStatisticsData': decimalColumnStatisticsData,
    if (doubleColumnStatisticsData != null)
      'DoubleColumnStatisticsData': doubleColumnStatisticsData,
    if (longColumnStatisticsData != null)
      'LongColumnStatisticsData': longColumnStatisticsData,
    if (stringColumnStatisticsData != null)
      'StringColumnStatisticsData': stringColumnStatisticsData,
  };
}