docs: def _from_dict(cls, _dict):
          """Initialize a Environment object from a json dictionary."""
          args = {}
          if 'environment_id' in _dict:
              args['environment_id'] = _dict.get('environment_id')
          if 'name' in _dict:
              args['name'] = _dict.get('name')
          if 'description' in _dict:
              args['description'] = _dict.get('description')
          if 'created' in _dict:
              args['created'] = string_to_datetime(_dict.get('created'))
          if 'updated' in _dict:
              args['updated'] = string_to_datetime(_dict.get('updated'))
          if 'status' in _dict:
              args['status'] = _dict.get('status')
          if 'read_only' in _dict:
              args['read_only'] = _dict.get('read_only')
          if 'size' in _dict:
              args['size'] = _dict.get('size')
          if 'requested_size' in _dict:
              args['requested_size'] = _dict.get('requested_size')
          if 'index_capacity' in _dict:
              args['index_capacity'] = IndexCapacity._from_dict(
                  _dict.get('index_capacity'))
          if 'search_status' in _dict:
              args['search_status'] = SearchStatus._from_dict(
                  _dict.get('search_status'))
          return cls(**args)