encode method Null safety

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

Implementation

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

  object.encode("title", title);
  object.encode("description", description);
  object.encode("required", isRequired);
  object.encode("example", example);
  object.encode("readOnly", readOnly);

  object.encodeObject("items", items);
  object.encodeObject("additionalProperties", additionalProperties);
  object.encodeObjectMap("properties", properties);
}