decode method
void
decode(
- KeyedArchive object
)
override
Implementation
@override
void decode(KeyedArchive object) {
super.decode(object);
summary = object.decode("summary");
description = object.decode("description");
parameters =
object.decodeObjects("parameters", () => APIParameter.empty()) ??
<APIParameter?>[];
final methodNames = [
"get",
"put",
"post",
"delete",
"options",
"head",
"patch",
"trace"
];
for (final methodName in methodNames) {
if (object.containsKey(methodName)) {
operations[methodName] =
object.decodeObject(methodName, () => APIOperation.empty());
}
}
}