toJson method

  1. @override
Map<String, Object?> toJson()
override

Implementation

@override
Map<String, Object?> toJson() => {
      ...super.toJson(),
      if (arguments != null) 'arguments': arguments,
      'command': command,
    };