An interface that ensures the
toJSON()
call will return something that can be serialized into API-compatible data.toJSON()
call will return something that can be serialized into API-compatible data.