toJson method

Map<String, Object?> toJson()

The command as a map, ready for jsonEncode: name under command, then arguments.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'command': name,
  ...arguments,
};