decode method
Implementation
void decode(KeyedArchive object) {
super.decode(object);
type = object.decode("type");
description = object.decode("description");
if (type == "basic") {
} else if (type == "oauth2") {
oauthFlow = APISecuritySchemeFlowCodec.decode(object.decode("flow"));
authorizationURL = object.decode("authorizationUrl");
tokenURL = object.decode("tokenUrl");
scopes = Map<String, String>.from(object.decode("scopes"));
} else if (type == "apiKey") {
apiKeyName = object.decode("name");
apiKeyLocation = APIParameterLocationCodec.decode(object.decode("in"));
}
}