toJson method
Converts a BackgroundFillGradient object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.value,
'top_color': topColor,
'bottom_color': bottomColor,
'rotation_angle': rotationAngle,
};
}