toMap method

Map<String, dynamic> toMap()

Converts object to map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "fontFamilyMedium": fontFamilyMedium,
    "fontFamilyBold": fontFamilyBold,
    "backgroundColor": backgroundColor,
    "secondaryBackgroundColor": secondaryBackgroundColor,
    "textColor": textColor,
    "secondaryTextColor": secondaryTextColor,
    "accentColor": accentColor,
    "accentTextColor": accentTextColor,
    "outlineColor": outlineColor,
    "borderRadius": borderRadius,
    "elevation": elevation,
    "shadowRadius": shadowRadius,
    "shadowOpacity": shadowOpacity,
    "shadowOffsetWidth": shadowOffset?.dx,
    "shadowOffsetHeight": shadowOffset?.dy,
  };
}