DecimalColumnStatisticsData.fromJson constructor

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

Implementation

factory DecimalColumnStatisticsData.fromJson(Map<String, dynamic> json) {
  return DecimalColumnStatisticsData(
    numberOfDistinctValues: json['NumberOfDistinctValues'] as int,
    numberOfNulls: json['NumberOfNulls'] as int,
    maximumValue: json['MaximumValue'] != null
        ? DecimalNumber.fromJson(json['MaximumValue'] as Map<String, dynamic>)
        : null,
    minimumValue: json['MinimumValue'] != null
        ? DecimalNumber.fromJson(json['MinimumValue'] as Map<String, dynamic>)
        : null,
  );
}