marshal method
Serialize data
of type T
to type S
, eg. a String
or some binary representation.
unmarshal(marshal(data))
must produce an instance of T
that is equivalent to
original instance data
.
Implementation
@override
T marshal(T data) => data;