from Json
Attempts to parse a DiamondCommand instance from the given JsonNode, throwing an IllegalArgumentException if the given json was not a string, or did not contain a valid DiamondCommand value.
Return
A DiamondCommand value matching the given input.
Parameters
json
JsonNode to parse.
Throws
if the given input value was not a JSON string, or did not represent a valid DiamondCommand value.