asBytesOrNull

Casts this ImageSource as a Bytes and retrieves its kotlin.ByteArray value. Returns null if the ImageSource is not a Bytes.