class_docstr: Fields used to generate the Model Card.
  
  Attributes:
    model_details: Descriptive metadata for the model.
    model_parameters: Technical metadata for the model.
    quantitative_analysis: Quantitative analysis of model performance.
    considerations: Any considerations related to model construction, training,
      and application.
docstr: Reads ModelCard from JSON.
  
  This function will only overwrite ModelCard fields specified in the JSON.
  
  Args:
    json: A JSON object from which to populate fields in the model card. This
      can be provided as either a dictionary or a string.
  
  Raises:
    JSONDecodeError: If `json_dict` is not a valid JSON string.
    ValidationError: If `json_dict` does not follow the model card JSON
      schema.
    ValueError: If `json_dict` contains a value not in the class or schema
      definition.
docstr_tok: ["Reads","ModelCard","from","JSON",".","This","function","will","only","overwrite","ModelCard","fields","specified","in","the","JSON",".","Args",":","json",":","A","JSON","object","from","which","to","populate","fields","in","the","model","card",".","This","can","be","provided","as","either","a","dictionary","or","a","string",".","Raises",":","JSONDecodeError",":","If","`","json_dict","`","is","not","a","valid","JSON","string",".","ValidationError",":","If","`","json_dict","`","does","not","follow","the","model","card","JSON","schema",".","ValueError",":","If","`","json_dict","`","contains","a","value","not","in","the","class","or","schema","definition","."]
code: def merge_from_json(
      self, json: Union[Dict[str, Any], str]
  ) -> "ModelCard":
      """Reads ModelCard from JSON.
  
      This function will only overwrite ModelCard fields specified in the JSON.
  
      Args:
        json: A JSON object from which to populate fields in the model card. This
          can be provided as either a dictionary or a string.
  
      Raises:
        JSONDecodeError: If `json_dict` is not a valid JSON string.
        ValidationError: If `json_dict` does not follow the model card JSON
          schema.
        ValueError: If `json_dict` contains a value not in the class or schema
          definition.
      """
      if isinstance(json, str):
          json = json_lib.loads(json)
      json_utils.validate_json_schema(json)
      self._from_json(json, self)
      return self
  
imports: import dataclasses
  import json
  import os
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  from model_card_toolkit.base_model_card_field import BaseModelCardField
  from model_card_toolkit.proto import model_card_pb2
  from model_card_toolkit.utils import io_utils, json_utils, template_utils
label_desc: Use image node_id 2 for calling the ModelCard obj's underlying member method code with example usage: obj.merge_from_json(json) and returns: self