GradientRule.fromJson constructor

GradientRule.fromJson(
  1. Map json_
)

Implementation

GradientRule.fromJson(core.Map json_)
  : this(
      maxpoint:
          json_.containsKey('maxpoint')
              ? InterpolationPoint.fromJson(
                json_['maxpoint'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      midpoint:
          json_.containsKey('midpoint')
              ? InterpolationPoint.fromJson(
                json_['midpoint'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      minpoint:
          json_.containsKey('minpoint')
              ? InterpolationPoint.fromJson(
                json_['minpoint'] as core.Map<core.String, core.dynamic>,
              )
              : null,
    );