toJson property Null safety
Implementation
@override
Object get toJson => {
'name': _label.toLowerCase(),
'description': _description,
'type': CommandType.group.type,
'options': _subcommands.map((option) => option.toJson).toList(),
};
@override
Object get toJson => {
'name': _label.toLowerCase(),
'description': _description,
'type': CommandType.group.type,
'options': _subcommands.map((option) => option.toJson).toList(),
};