decode method Null safety

void decode(
  1. KeyedArchive object
)
override

Implementation

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

  paths = {};
  object.forEach((key, dynamic value) {
    if (value is! KeyedArchive) {
      throw new ArgumentError(
          "Invalid specification. Callback contains non-object value.");
    }
    paths![key] = value.decode(key);
    // paths![key] = value.decode(key, inflate: () => new APIPath());
  });
}