DimensionKeyDescription.fromJson constructor

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

Implementation

factory DimensionKeyDescription.fromJson(Map<String, dynamic> json) {
  return DimensionKeyDescription(
    dimensions: (json['Dimensions'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    partitions: (json['Partitions'] as List?)
        ?.whereNotNull()
        .map((e) => e as double)
        .toList(),
    total: json['Total'] as double?,
  );
}