decode method Null safety

void decode(
  1. KeyedArchive object
)
override

Implementation

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

  contentType = object.decode("contentType");
  headers = object.decodeObjectMap("headers", () => new APIHeader())
      as Map<String, APIHeader>;
  _allowReserved = object.decode("allowReserved");
  _explode = object.decode("explode");
  style = object.decode("style");
}