decode method Null safety

void decode(
  1. KeyedArchive object
)
override

Implementation

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

  schema = object.decodeObject("schema", () => new APISchemaObject());
  encoding = object.decodeObjectMap("encoding", () => new APIEncoding())
      as Map<String, APIEncoding>;
}