diff --git a/lib/serializers.dart b/lib/serializers.dart index 0b47b0f..2ddf3ab 100644 --- a/lib/serializers.dart +++ b/lib/serializers.dart @@ -1,3 +1,3 @@ export "src/serializers/cbor.dart" show CBORSerializer; -export "src/serializers/json.dart" show JsonSerializer; +export "src/serializers/json.dart" show JSONSerializer; export "src/serializers/msgpack.dart" show MsgPackSerializer; diff --git a/lib/src/serializers/json.dart b/lib/src/serializers/json.dart index 68f16d9..f8f835c 100644 --- a/lib/src/serializers/json.dart +++ b/lib/src/serializers/json.dart @@ -4,7 +4,7 @@ import "dart:typed_data"; import "package:wampproto/src/messages/message.dart"; import "package:wampproto/src/serializers/serializer.dart"; -class JsonSerializer implements Serializer { +class JSONSerializer implements Serializer { @override Uint8List serialize(final Message message) { var jsonString = jsonEncode(message.marshal()); diff --git a/test/serializers/json_test.dart b/test/serializers/json_test.dart index 3a86128..383ed32 100644 --- a/test/serializers/json_test.dart +++ b/test/serializers/json_test.dart @@ -9,7 +9,7 @@ void main() { void testJson() { var hello = Hello.parse([1, "realm1"]); - var serializer = JsonSerializer(); + var serializer = JSONSerializer(); var data = serializer.serialize(hello); var obj = serializer.deserialize(data);