We're a place where coders share, stay up-to-date and grow their careers.
Thanks Joan. I did the failover and it is working as intending. I got problems with the JsonDecoder.Success in functions as you recommended posts back (Sep 27).
Uncaught (in promise): TypeError: Cannot read property 'toApiDTO' of undefined.
public static cvt= JsonDecoder.object<CoordinateValueType>({ latitude: JsonDecoder.failover(0, JsonDecoder.number), longitude: JsonDecoder.failover(0, JsonDecoder.number), altitude: JsonDecoder.failover(0, JsonDecoder.number), equals: JsonDecoder.succeed, toApiDTO: JsonDecoder.succeed, toString: JsonDecoder.succeed }, 'CoordinateValueType', { latitude: '_latitude', longitude: '_longitude', altitude: '_altitude', equals: 'equals', toApiDTO: 'toApiDTO', toString: 'toString' })
Best Hmendezm
Thanks Joan.
I did the failover and it is working as intending. I got problems with the JsonDecoder.Success in functions as you recommended posts back (Sep 27).
Uncaught (in promise): TypeError: Cannot read property 'toApiDTO' of undefined.
Best
Hmendezm