toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'radius': radius,
'capBarTextAlign': capBarTextAlign,
'capBarBorderColor': capBarBorderColor,
'capBarTextColor': capBarTextColor,
'capBarTextSize': capBarTextSize,
'capBarTextWeight': capBarTextWeight,
'capBarTitleHeight': capBarTitleHeight,
'capBodyPadding': capBodyPadding,
'capPaddingTop': capPaddingTop,
'capPaddingRight': capPaddingRight,
'capPaddingBottom': capPaddingBottom,
'capPaddingLeft': capPaddingLeft,
'paddingTop': paddingTop,
'paddingBottom': paddingBottom,
'capBorderRadius': capBorderRadius,
'borderColor': borderColor,
'background': background,
'borderColorMoving': borderColorMoving,
'backgroundMoving': backgroundMoving,
'borderColorSuccess': borderColorSuccess,
'backgroundSuccess': backgroundSuccess,
'backgroundError': backgroundError,
'borderColorError': borderColorError,
'slideBackground': slideBackground,
'textSize': textSize,
'textColor': textColor,
'height': height,
'borderRadius': borderRadius,
'gap': gap,
'executeBorderRadius': executeBorderRadius,
'executeBackground': executeBackground,
'executeTop': executeTop,
'executeRight': executeRight,
}..removeWhere((key, value) => value == null);
}