public PayloadBuilder(string command = null, List <string> arguments = null) { if (command != null) { _payload = new PayloadNucleusBot() { Command = command, Arguments = arguments } } ; else { _payload = new PayloadNucleusBot(); } }
public string BuildToStringFromModel(PayloadNucleusBot payload) => JsonConvert.SerializeObject(payload);