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: Write ModelCard to JSON.
docstr_tok: ["Write","ModelCard","to","JSON","."]
code: def to_json(self) -> str:
      """Write ModelCard to JSON."""
      model_card_dict = self.to_dict()
      model_card_dict[
          json_utils.SCHEMA_VERSION_STRING
      ] = json_utils.get_latest_schema_version()
      return json_lib.dumps(model_card_dict, indent=2)
  
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 1 for calling the ModelCard obj's underlying member method code with example usage: obj.to_json() and returns: json_lib