Map<String, Object?> toJson() => { 'color': color.toJson(), 'x': x, 'y': y, 'blur': blur, 'spread': spread, };