ColumnStatisticsData.fromJson constructor

ColumnStatisticsData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ColumnStatisticsData.fromJson(Map<String, dynamic> json) {
  return ColumnStatisticsData(
    type: (json['Type'] as String).toColumnStatisticsType(),
    binaryColumnStatisticsData: json['BinaryColumnStatisticsData'] != null
        ? BinaryColumnStatisticsData.fromJson(
            json['BinaryColumnStatisticsData'] as Map<String, dynamic>)
        : null,
    booleanColumnStatisticsData: json['BooleanColumnStatisticsData'] != null
        ? BooleanColumnStatisticsData.fromJson(
            json['BooleanColumnStatisticsData'] as Map<String, dynamic>)
        : null,
    dateColumnStatisticsData: json['DateColumnStatisticsData'] != null
        ? DateColumnStatisticsData.fromJson(
            json['DateColumnStatisticsData'] as Map<String, dynamic>)
        : null,
    decimalColumnStatisticsData: json['DecimalColumnStatisticsData'] != null
        ? DecimalColumnStatisticsData.fromJson(
            json['DecimalColumnStatisticsData'] as Map<String, dynamic>)
        : null,
    doubleColumnStatisticsData: json['DoubleColumnStatisticsData'] != null
        ? DoubleColumnStatisticsData.fromJson(
            json['DoubleColumnStatisticsData'] as Map<String, dynamic>)
        : null,
    longColumnStatisticsData: json['LongColumnStatisticsData'] != null
        ? LongColumnStatisticsData.fromJson(
            json['LongColumnStatisticsData'] as Map<String, dynamic>)
        : null,
    stringColumnStatisticsData: json['StringColumnStatisticsData'] != null
        ? StringColumnStatisticsData.fromJson(
            json['StringColumnStatisticsData'] as Map<String, dynamic>)
        : null,
  );
}