@DeprecatedSinceKotlin("1.4") fun String.toBoolean(): BooleanDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
Returns true
if the content of this string is equal to the word "true", ignoring case, and false
otherwise.
fun String?.toBoolean(): Boolean
@JvmName("toBooleanNullable") fun String?.toBoolean(): Boolean
Returns true
if this string is not null
and its content is equal to the word "true", ignoring case, and false
otherwise.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/to-boolean.html