InterpolationPoint.fromJson constructor

InterpolationPoint.fromJson(
  1. Map json_
)

Implementation

InterpolationPoint.fromJson(core.Map json_)
  : this(
      color:
          json_.containsKey('color')
              ? Color.fromJson(
                json_['color'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      colorStyle:
          json_.containsKey('colorStyle')
              ? ColorStyle.fromJson(
                json_['colorStyle'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      type: json_['type'] as core.String?,
      value: json_['value'] as core.String?,
    );