decode method Null safety

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

Implementation

@override
void decode(KeyedArchive object) {
  super.decode(object);
  description = object.decode("description");
  if (type == APIType.array) {
    items = object.decodeObject("items", () => APIProperty());
  }
}