IJsonDeserializable<TSelf>
Namespace: SnowBank.Data.Json · interface
Supports custom JSON deserialization from JsonValue into instances of TSelf
Remarks
Types that handle their own custom serialization should typically implement this interface, as well as IJsonSerializable and IJsonPackable.
In case where the original type TSelf cannot be modified, and custom serialization is required, see IJsonDeserializer.
Methods
JsonDeserialize
static TSelf JsonDeserialize(JsonValue value, ICrystalJsonTypeResolver resolver)
Deserializes a parsed JsonValue into an instance of type TSelf.
value— JSON value that will be bound to the new instanceresolver— Custom resolver used to bind the value into a managed type.
Returns: A new instance of TSelf that has been initialized from the contents of value.