msgpack 0.0.4 copy "msgpack: ^0.0.4" to clipboard
msgpack: ^0.0.4 copied to clipboard

outdatedDart 1 only

MsgPack for Dart

dart-msgpack #

This is a very early release of my MessagePack library for Dart. Currently, message classes must be written by hand. For example:

class NotificationFrame extends Message {
    String kind;
    Map<String, Object> data;

    NotificationFrame(this.kind, this.data);

    static NotificationFrame fromList(List f) => new NotificationFrame(f[0], f[1]);
    List toList() => [kind, data];
}

For each class you need to define the fromList and toList methods, which convert from and to a list of fields respectively.

For example usage, see the unit tests.

0
likes
0
pub points
19%
popularity

Publisher

unverified uploader

MsgPack for Dart

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

unittest

More

Packages that depend on msgpack