Table of Contents

Method FromJson

Namespace
Titipi.MocaLib2

FromJson<T>(string)

Deserializes standalone JSON that follows the library's Remote Config conventions — snake_case keys mapped onto PascalCase C# members — e.g. the ad_test_devices array into List<TestDevice>. Unlike Resolve<T>(T, string) this builds a fresh object rather than overlaying an asset. Returns default and logs an error on malformed JSON.

public static T FromJson<T>(string json)

Parameters

json string

Returns

T

Type Parameters

T