Index: pkg/serialization/test/serialization_test.dart |
diff --git a/pkg/serialization/test/serialization_test.dart b/pkg/serialization/test/serialization_test.dart |
index 33247ae054f2fed18f45058853e3ab0584f3c949..f4713a28255da989b246836916efc25ebf0452a0 100644 |
--- a/pkg/serialization/test/serialization_test.dart |
+++ b/pkg/serialization/test/serialization_test.dart |
@@ -641,7 +641,7 @@ runRoundTripTestFlat(serializerSetUp) { |
/** Extract the state from [object] using the rules in [s] and return it. */ |
states(object, Serialization s) { |
var rules = s.rulesFor(object, null); |
- return rules.mappedBy((x) => x.extractState(object, doNothing)).toList(); |
+ return rules.map((x) => x.extractState(object, doNothing)).toList(); |
} |
/** A hard-coded rule for serializing Node instances. */ |