toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'backgroundColor': colorToHex(backgroundColor),
    'timerTextColor': colorToHex(timerTextColor),
    'timerIconColor': colorToHex(timerIconColor),
    'titleTextColor': colorToHex(titleTextColor),
    'subtitleTextColor': colorToHex(subtitleTextColor),
    'timeTextColor': colorToHex(timeTextColor),
    'openBadgeBackgroundColor': colorToHex(openBadgeBackgroundColor),
    'openBadgeBorderColor': colorToHex(openBadgeBorderColor),
    'openBadgeTextColor': colorToHex(openBadgeTextColor),
    'separatorColor': colorToHex(separatorColor),
    'UnreadBadge': unreadBadge.toMap(),
  };
}