encode method
Implementation
@override
void encode(KeyedArchive object) {
super.encode(object);
if (defaultValue == null) {
throw ArgumentError(
"APIServerVariable must have non-null values for: 'defaultValue'.",
);
}
object.encode("enum", availableValues);
object.encode("default", defaultValue);
object.encode("description", description);
}