encode method Null safety

void encode(
  1. KeyedArchive object
)
override

Implementation

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

  if (name == null) {
    throw new ArgumentError("APITag must have non-null values for: 'name'.");
  }
  object.encode("name", name);
  object.encode("description", description);
}