UtilJsonApiSerializer.Serialization.JsonApiFormatter.ValidateUpdateDocument C# (CSharp) Method

ValidateUpdateDocument() private method

private ValidateUpdateDocument ( UpdateDocument updateDocument ) : void
updateDocument UpdateDocument
return void
        private void ValidateUpdateDocument(UpdateDocument updateDocument)
        {
            if (updateDocument == null)
            {
                throw new JsonException("Json body can not be empty or whitespace.");
            }

            if (updateDocument.Data == null)
            {
                throw new JsonException("Json body should contain some content.");
            }
        }