Skip to content

Commit

Permalink
rename JSON Serializer (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahad-10 authored Apr 16, 2024
1 parent cfacb6a commit c84c5b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/serializers.dart
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion lib/src/serializers/json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion test/serializers/json_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c84c5b9

Please sign in to comment.