toJson method

Map<String, dynamic> toJson()

Implementation

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