toDto method

Implementation

ShapeDecorationDto toDto() {
  return ShapeDecorationDto(
    color: color?.toDto(),
    shape: shape.toDto(),
    gradient: gradient?.toDto(),
    shadows: shadows?.map((e) => e.toDto()).toList(),
  );
}