marshal abstract method

S marshal(
  1. T data
)

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

S marshal(T data);