| Index: pkg/serialization/lib/src/format.dart
|
| diff --git a/pkg/serialization/lib/src/format.dart b/pkg/serialization/lib/src/format.dart
|
| index a1726f0f5b979a82627cc96c356a793509399ba9..68f609453db5b87c860f57cd3fdb3da3b14f7cd9 100644
|
| --- a/pkg/serialization/lib/src/format.dart
|
| +++ b/pkg/serialization/lib/src/format.dart
|
| @@ -210,13 +210,13 @@ class SimpleJsonFormat extends Format {
|
| // the data is shown to the user, so we destructively modify.
|
| if (data is List) {
|
| ruleNumber = data.last;
|
| - data = data.take(data.length -1);
|
| + data = data.take(data.length - 1).toList();
|
| } else if (data is Map) {
|
| ruleNumber = data.remove(RULE);
|
| } else {
|
| throw new SerializationException("Invalid data format");
|
| }
|
| - // Do not use mappedBy or other lazy operations for this. They do not play
|
| + // Do not use map or other lazy operations for this. They do not play
|
| // well with a function that destructively modifies its arguments.
|
| var newData = mapValues(data, (each) => recursivelyFixUp(each, r, result));
|
| result[ruleNumber].add(newData);
|
|
|