toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'action': action,
'name': name,
'launchType': launchType,
if (icons != null) 'icons': icons!.map((e) => e.toJson()).toList(),
if (accepts != null) 'accepts': accepts!.map((e) => e.toJson()).toList(),
};
}