core.Map<core.String, core.dynamic> toJson() => { if (command != null) 'command': command!, if (parameters != null) 'parameters': parameters!, if (subcommand != null) 'subcommand': subcommand!, };