encode method Null safety

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

Implementation

@override
void encode(KeyedArchive object) {
  super.encode(object);
  object.encode("description", description);
  if (type == APIType.array) {
    object.encodeObject("items", items);
  }
}