Taking inspiration from getOrNull
type function in Kotlin, I ended up creating this extension which has helped me out in multiple cases, Specially dealings with JsonParsing
.
Highly recommend the following extended explanation of how this extension work, Do checkout and stay tuned for more content.
👉 AndroidBites|kotlin-try-null
Hope to see you on the other side...
Until next time. Happy Hacking! 👩💻
Stalk Me 👀 :
LinkedIn | Medium | Twitter | StackOverflow | CodeWars |WorkX |Github |Instagram |Youtube
Top comments (0)