fromMessagePack<T> function
Implementation
T fromMessagePack<T>(
TypedData data,
T Function(List<dynamic>) creator,
) {
MessagePackReader reader = MessagePackReader.fromTypedData(data);
return reader.readMessage(creator) as T;
}