toDto method
Implementation
BoxDecorationDto toDto() {
return BoxDecorationDto(
color: color?.toDto(),
border: border?.toDto(),
borderRadius: borderRadius?.toDto(),
gradient: gradient?.toDto(),
boxShadow: boxShadow?.map((e) => e.toDto()).toList(),
shape: shape,
backgroundBlendMode: backgroundBlendMode,
image: image?.toDto(),
);
}