ConditionalFormatRule.fromJson constructor

ConditionalFormatRule.fromJson(
  1. Map json_
)

Implementation

ConditionalFormatRule.fromJson(core.Map json_)
    : this(
        booleanRule: json_.containsKey('booleanRule')
            ? BooleanRule.fromJson(
                json_['booleanRule'] as core.Map<core.String, core.dynamic>)
            : null,
        gradientRule: json_.containsKey('gradientRule')
            ? GradientRule.fromJson(
                json_['gradientRule'] as core.Map<core.String, core.dynamic>)
            : null,
        ranges: json_.containsKey('ranges')
            ? (json_['ranges'] as core.List)
                .map((value) => GridRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );