SerializedBytes.from - corda

corda / net.corda.core.serialization / SerializedBytes / from

# from

`@JvmStatic @JvmOverloads fun <T : Any> from(obj: T, serializationFactory: SerializationFactory = SerializationFactory.defaultFactory, context: SerializationContext = serializationFactory.defaultContext): SerializedBytes<T>`

Serializes the given object and returns a SerializedBytes wrapper for it. An alias for Any.serialize intended to make the calling smoother for Java users.