CostCategoryValues.fromJson constructor

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

Implementation

factory CostCategoryValues.fromJson(Map<String, dynamic> json) {
  return CostCategoryValues(
    key: json['Key'] as String?,
    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(),
  );
}