Constructs a SerializedType object with an optional buffer. If buffer is not provided, an empty bytes is used.
SerializedType(List<int> buffer) : _buffer = buffer.asImmutableBytes;