本文整理汇总了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));
}