toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'textColor': textColor?.value,
    'font': font?.toMap(),
    'cornerRadius': cornerRadius,
    'backgroundColor': backgroundColor?.value,
    'borderWidth': borderWidth,
    'borderColor': borderColor?.value,
    'errorBorderColor': errorBorderColor?.value,
    'errorMessageFont': errorMessageFont?.toMap(),
  };
}