unmarshal method

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

Deserialize a representation of type S back to the original data of type T. unmarshal(marshal(data)) must produce an instance of T that is equivalent to original instance data.

Implementation

@override
T unmarshal(dynamic data, [MarshalingContext? context]) => data as T;