toPlatformOrNull