decode method

  1. @override
void decode(
  1. KeyedArchive object
)
override

Implementation

@override
void decode(KeyedArchive object) {
  super.decode(object);

  for (final key in object.keys) {
    final decoded = object.decode<Iterable<dynamic>>(key);
    if (decoded != null) {
      final req = List<String>.from(decoded);
      requirements ??= <String, List<String>>{};
      requirements![key] = req;
    }
  }
}