fromMessagePack<T> function

T fromMessagePack<T>(
  1. TypedData data,
  2. T creator(
    1. List
    )
)

Implementation

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