toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'backgroundColor': colorToHex(backgroundColor),
    'audioRecordHintBackgroundColor':
        colorToHex(audioRecordHintBackgroundColor),
    'audioRecordHintTextColor': colorToHex(audioRecordHintTextColor),
    'textFieldBorderColor': colorToHex(textFieldBorderColor),
    'textFieldTintColor': colorToHex(textFieldTintColor),
    'textFieldBackgroundColor': colorToHex(textFieldBackgroundColor),
    'textFieldPlaceholderColor': colorToHex(textFieldPlaceholderColor),
    'textFieldTextColor': colorToHex(textFieldTextColor),
    'attachmentButtonBackgroundColor':
        colorToHex(attachmentButtonBackgroundColor),
    'recordButtonBackgroundColor': colorToHex(recordButtonBackgroundColor),
    'recordSoundPulseBackgroundColor':
        colorToHex(recordSoundPulseBackgroundColor),
    'sendButtonBackgroundColor': colorToHex(sendButtonBackgroundColor),
    'buttonDisabledBackgroundColor':
        colorToHex(buttonDisabledBackgroundColor),
    'recordTimerBackgroundColor': colorToHex(recordTimerBackgroundColor),
    'recordTimerTextColor': colorToHex(recordTimerTextColor),
    'recordTimerIndicatorColor': colorToHex(recordTimerIndicatorColor),
    'recordSlideTextColor': colorToHex(recordSlideTextColor),
    'recordSlideIconColor': colorToHex(recordSlideIconColor),
    'recordCancelTextColor': colorToHex(recordCancelTextColor),
    'moreIconColor': colorToHex(moreIconColor),
    'sendIconColor': colorToHex(sendIconColor),
    'recordIconColor': colorToHex(recordIconColor),
    'Reply': reply.toMap(),
    'Edit': edit.toMap(),
  };
}