serialize property

  1. @override
Map<String, dynamic> get serialize
override

Implementation

@override
Map<String, dynamic> get serialize => {
  ...super.serialize,
  'type': CommandType.subcommand.type,
  'options': [...options.map((option) => option.serialize)]
};