model_validate_json#
- classmethod PottingRegionUpdateData.model_validate_json(json_data, *, strict=None, extra=None, context=None, by_alias=None, by_name=None)#
- !!! abstract “Usage Documentation”
[JSON Parsing](../concepts/json.md#json-parsing)
Validate the given JSON data against the Pydantic model.
- Parameters:
json_data (
str|bytes|bytearray) – The JSON data to validate.extra (
Optional[Literal['allow','ignore','forbid']]) – Whether to ignore, allow, or forbid extra data during model validation. See the [extra configuration value][pydantic.ConfigDict.extra] for details.context (
Any|None) – Extra variables to pass to the validator.by_alias (
bool|None) – Whether to use the field’s alias when validating against the provided input data.by_name (
bool|None) – Whether to use the field’s name when validating against the provided input data.
- Return type:
Self- Returns:
The validated Pydantic model.
- Raises:
ValidationError – If json_data is not a JSON string or the object could not be validated.