AndroidBites : Let's try-catch ?: Value

AndroidBites : Let's try-catch ?: Value

ยท

1 min read

Taking inspiration from the getOrNull type function in Kotlin,

I ended up creating this extension which has helped me out in multiple cases, Specially dealings with JsonParsing.

tryOrNull_50 (1).png

Highly recommend the following extended explanation of how this extension work, Do checkout and stay tuned for more content.

Happy Hacking!

Stalk Me ๐Ÿ‘€ :
LinkedIn | Medium | Twitter | StackOverflow | CodeWars | WorkX | Github | Instagram | Youtube