decode method Null safety

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

Implementation

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

  title = object.decode("title");
  description = object.decode("description");
  isRequired = object.decode("required");
  example = object.decode("example");
  readOnly = object.decode("readOnly") ?? false;

  items = object.decodeObject("items", () => APISchemaObject());
  additionalProperties =
      object.decodeObject("additionalProperties", () => APISchemaObject());
  properties = object.decodeObjectMap("properties", () => APISchemaObject());
}