decode method Null safety

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

Implementation

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

  title = object.decode<String>("title") ?? '';
  description = object.decode("description");
  termsOfServiceURL = object.decode("termsOfService");
  contact = object.decodeObject("contact", () => APIContact());
  license = object.decodeObject("license", () => APILicense());
  version = object.decode("version");
}