marshal method

  1. @override
T marshal(
  1. T data
)
override

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;