toJson method

Map<String, dynamic> toJson()

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(),
  };
}