toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'botTypingIndicatorStyle': botTypingIndicatorStyle,
'messageSenderNameColor': colorToHex(messageSenderNameColor),
'outgoingBackgroundColor': colorToHex(outgoingBackgroundColor),
'outgoingTextColor': colorToHex(outgoingTextColor),
'outgoingBorderColor': colorToHex(outgoingBorderColor),
'outgoingTimeTextColor': colorToHex(outgoingTimeTextColor),
'outgoingTimeIconColor': colorToHex(outgoingTimeIconColor),
'incomingBackgroundColor': colorToHex(incomingBackgroundColor),
'incomingTextColor': colorToHex(incomingTextColor),
'incomingBorderColor': colorToHex(incomingBorderColor),
'incomingTimeTextColor': colorToHex(incomingTimeTextColor),
'incomingTimeIconColor': colorToHex(incomingTimeIconColor),
'incomingTextTimeColor': colorToHex(incomingTextTimeColor),
'outgoingTextTimeColor': colorToHex(outgoingTextTimeColor),
'messageStatusIconColor': colorToHex(messageStatusIconColor),
'incomingProgressButton': incomingProgressButton.toMap(),
'outgoingProgressButton': outgoingProgressButton.toMap(),
'outgoingRepliedMessage': outgoingRepliedMessage.toMap(),
'incomingRepliedMessage': incomingRepliedMessage.toMap(),
'incomingMessageEditedTagColor':
colorToHex(incomingMessageEditedTagColor),
'outgoingMessageEditedTagColor':
colorToHex(outgoingMessageEditedTagColor),
'incomingMessageTimeStampColor':
colorToHex(incomingMessageTimeStampColor),
'outgoingMessageTimeStampColor':
colorToHex(outgoingMessageTimeStampColor),
'incomingDeletedMessageColor': colorToHex(incomingDeletedMessageColor),
'outgoingDeletedMessageColor': colorToHex(outgoingDeletedMessageColor),
'deletingMessageTitleColor': colorToHex(deletingMessageTitleColor),
'deliveryStatusIconColor': colorToHex(deliveryStatusIconColor),
'repliedMessageHighLightColor': colorToHex(repliedMessageHighLightColor),
'incomingMessageReplyIconColor':
colorToHex(incomingMessageReplyIconColor),
'outgoingMessageReplyIconColor':
colorToHex(outgoingMessageReplyIconColor),
'LoadMore': loadMore.toMap(),
};
}