As of now, the JsonCustomConvert interface has the methods serialize(data: T): any and deserialize(data: any): T.
In some cases, the (de-)serialization might be dependent on the parent's object values. We could add an optional parameter parentData?: any in both methods that contains the parent data (object) if it exists, undefined otherwise.
As of now, the
JsonCustomConvertinterface has the methodsserialize(data: T): anyanddeserialize(data: any): T.In some cases, the (de-)serialization might be dependent on the parent's object values. We could add an optional parameter
parentData?: anyin both methods that contains the parent data (object) if it exists,undefinedotherwise.