Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Sep 21, 2023
1 parent de57b54 commit 39d4f38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/messages_serializer/lib/src/serializer_json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class JsonSerializer extends Serializer<String> {
}
}

/// Insert `null` instead of the full messageMapping to save space.
result.insert(Preamble.length, keepOnly != null ? messageMapping : null);

return Serialization(jsonEncode(result));
Expand Down

0 comments on commit 39d4f38

Please sign in to comment.