toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (type.isNotDefault) 'type': type.toJson(),
  if (polarity.isNotDefault) 'polarity': polarity.toJson(),
  if (colorMap.isNotDefault) 'colorMap': colorMap.toJson(),
  if (clipPercentUpperbound.isNotDefault)
    'clipPercentUpperbound': encodeDouble(clipPercentUpperbound),
  if (clipPercentLowerbound.isNotDefault)
    'clipPercentLowerbound': encodeDouble(clipPercentLowerbound),
  if (overlayType.isNotDefault) 'overlayType': overlayType.toJson(),
};