sdk/dotnet/src/Microsoft.Datasync.Client/Serialization/ServiceSerializer.cs
/// <summary>
/// Deserializes a JSON string into an instance.
/// </summary>
/// <typeparam name="T">The type of object to deserialize into.</typeparam>
/// <param name="json">The parsed JSON string.</param>
/// <param name="instance">The instance to populate.</param>
Deserializes a JSON string into an instance.
Deserializes a JSON string into an instance .
public void Deserialize<T>(JToken json, T instance)
        {
            Arguments.IsNotNull(json, nameof(json));
            Arguments.IsNotNull(instance, nameof(instance));
            JsonConvert.PopulateObject(json.ToString(), instance, SerializerSettings);
        }
public void Deserialize < T > ( JToken json , T instance ) { Arguments . IsNotNull ( json , nameof ( json ) ) ; Arguments . IsNotNull ( instance , nameof ( instance ) ) ; JsonConvert . PopulateObject ( json . ToString ( ) , instance , SerializerSettings ) ; }
Deserializes a JSON string into an instance.
Deserializes a JSON string into an instance .
json
JToken
The parsed JSON string.
The parsed JSON string .
instance
T
The instance to populate.
The instance to populate .
typeparam
The type of object to deserialize into.
The type of object to deserialize into .