I have a nested json value as a dynamic config and would like to deserialize it into a kotlin data class of my own definition. However, right now the sdk automatically parses the raw config value into a nested map.
{
"resource": [
{ "host": "cdn.jsdelivr.net" },
],
"image": [
{ "host": "raw.githubusercontent.com" },
{ "host": "user-images.githubusercontent.com" },
],
"frame": [
{ "host": "www.google.com", "pathPrefixes": ["/maps/embed"] },
{ "host": "maps.google.com", "pathPrefixes": ["/maps/embed", "/maps"] },
{ "host": "youtube.com", "pathPrefixes": ["/embed"] },
{ "host": "streamable.com", "pathPrefixes": ["/e"] },
],
}
I have a nested json value as a dynamic config and would like to deserialize it into a kotlin data class of my own definition. However, right now the sdk automatically parses the raw config value into a nested map.
I'd love a
getRawValue(): Stringmethod for dynamic configs so I can deserialize it myself!Example dynamic config: