DimensionValues.fromJson constructor

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

Implementation

factory DimensionValues.fromJson(Map<String, dynamic> json) {
  return DimensionValues(
    key: (json['Key'] as String?)?.toDimension(),
    matchOptions: (json['MatchOptions'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toMatchOption())
        .toList(),
    values: (json['Values'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}