valueAsString<T extends String?> static method
Implementation
static T valueAsString<T extends String?>(Object? value) {
if (value is T) return value;
if (value == null && _isNull<T>()) return null as T;
if (value is! String) {
throw JSONHelperException("Failed to parse value as string.");
}
return value as T;
}