toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final numberOfDistinctValues = this.numberOfDistinctValues;
  final numberOfNulls = this.numberOfNulls;
  final maximumValue = this.maximumValue;
  final minimumValue = this.minimumValue;
  return {
    'NumberOfDistinctValues': numberOfDistinctValues,
    'NumberOfNulls': numberOfNulls,
    if (maximumValue != null)
      'MaximumValue': unixTimestampToJson(maximumValue),
    if (minimumValue != null)
      'MinimumValue': unixTimestampToJson(minimumValue),
  };
}