marshal method

  1. @override
T marshal(
  1. T data, [
  2. MarshalingContext? context
])

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, [MarshalingContext? context]) => data;