// Copyright 2021-2024, University of Colorado Boulder
import '../../../globals.js';
import _ from 'lodash';
import IOType from './IOType.js';
import StateSchema from './StateSchema.js';
import ValueIO from './ValueIO.js';
const noExtraPrototype = (object) => Object.getPrototypeOf(object) === Object.prototype;
/**
 * IOType intended for usage with object literals, primarily for toStateObject/fromStateObject.
 * @author Sam Reid (PhET Interactive Simulations)
 */
const ObjectLiteralIO = new IOType('ObjectLiteralIO', {
    documentation: 'PhET-iO Type for object literals',
    isValidValue: noExtraPrototype,
    supertype: ValueIO,
    stateSchema: StateSchema.asValue('object', { valueType: Object, isValidValue: noExtraPrototype }),
    toStateObject: _.identity
});
export default ObjectLiteralIO;
//# sourceMappingURL=ObjectLiteralIO.js.map