toJson method

Map<String, dynamic> toJson()

Converts this GradientConfig to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'enabled': enabled,
    'colors': colors,
    'angle': angle,
  };
}