serialize method

Map<String, dynamic> serialize()

Implementation

Map<String, dynamic> serialize() {
  return <String, dynamic>{
    'id': id,
    'action': action,
    'shortLabel': shortLabel,
    'longLabel': longLabel,
    'icon': icon,
    'shortcutIconType': shortcutIconAsset.index.toString(),
    'conversationShortcut': conversationShortcut,
    'isImportant': isImportant,
    'isBot': isBot,
  };
}