doRead method

  1. @override
dynamic doRead(
  1. MsgPackReader reader
)
override

Reads the serialized representation of an object

  • reader: The MsgPackReader that should be used to read the object extension

Returns the object after successful deserialization

Implementation

@override
dynamic doRead(MsgPackReader reader) {
  return DateTime.parse(reader.read());
}