本文整理匯總了TypeScript中models/shared/configuration.Configurations.fromJSON方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Configurations.fromJSON方法的具體用法?TypeScript Configurations.fromJSON怎麽用?TypeScript Configurations.fromJSON使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類models/shared/configuration.Configurations
的用法示例。
在下文中一共展示了Configurations.fromJSON方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: fromJSON
static fromJSON(profileJson: ClusterProfileJSON): ClusterProfile {
const profile = new ClusterProfile(profileJson.id,
profileJson.plugin_id,
Configurations.fromJSON(profileJson.properties));
profile.errors(new Errors(profileJson.errors));
return profile;
}
示例2: deserialize
static deserialize(data: PluginAttributesJSON) {
return new PluginAttributes(data.auth_config_id, Configurations.fromJSON(data.properties));
}
示例3: fromJSON
static fromJSON(data: SecretConfigJSON) {
const configurations = Configurations.fromJSON(data.properties);
const rules = Rules.fromJSON(data.rules);
return new SecretConfig(data.id, data.description, data.plugin_id, configurations, rules);
}
示例4: fromJSON
static fromJSON(data: AuthConfigJSON) {
const configurations = Configurations.fromJSON(data.properties);
const errors = new Errors(data.errors);
return new AuthConfig(data.id, data.plugin_id, configurations, errors);
}
示例5: fromJSON
static fromJSON(data: ArtifactStoreJSON) {
return new ArtifactStore(data.id,
data.plugin_id,
Configurations.fromJSON(data.properties),
new Errors(data.errors));
}