FilterCriteria.fromJson constructor

FilterCriteria.fromJson(
  1. Map json_
)

Implementation

FilterCriteria.fromJson(core.Map json_)
    : this(
        condition: json_.containsKey('condition')
            ? BooleanCondition.fromJson(
                json_['condition'] as core.Map<core.String, core.dynamic>)
            : null,
        hiddenValues: json_.containsKey('hiddenValues')
            ? (json_['hiddenValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        visibleBackgroundColor: json_.containsKey('visibleBackgroundColor')
            ? Color.fromJson(json_['visibleBackgroundColor']
                as core.Map<core.String, core.dynamic>)
            : null,
        visibleBackgroundColorStyle:
            json_.containsKey('visibleBackgroundColorStyle')
                ? ColorStyle.fromJson(json_['visibleBackgroundColorStyle']
                    as core.Map<core.String, core.dynamic>)
                : null,
        visibleForegroundColor: json_.containsKey('visibleForegroundColor')
            ? Color.fromJson(json_['visibleForegroundColor']
                as core.Map<core.String, core.dynamic>)
            : null,
        visibleForegroundColorStyle:
            json_.containsKey('visibleForegroundColorStyle')
                ? ColorStyle.fromJson(json_['visibleForegroundColorStyle']
                    as core.Map<core.String, core.dynamic>)
                : null,
      );