Repository.fromJson constructor
Repository.fromJson(
- Map json_
Implementation
Repository.fromJson(core.Map json_)
: this(
cleanupPolicies: json_.containsKey('cleanupPolicies')
? (json_['cleanupPolicies']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
CleanupPolicy.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
cleanupPolicyDryRun: json_.containsKey('cleanupPolicyDryRun')
? json_['cleanupPolicyDryRun'] as core.bool
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
disallowUnspecifiedMode: json_.containsKey('disallowUnspecifiedMode')
? json_['disallowUnspecifiedMode'] as core.bool
: null,
dockerConfig: json_.containsKey('dockerConfig')
? DockerRepositoryConfig.fromJson(
json_['dockerConfig'] as core.Map<core.String, core.dynamic>)
: null,
format: json_.containsKey('format')
? json_['format'] as core.String
: null,
kmsKeyName: json_.containsKey('kmsKeyName')
? json_['kmsKeyName'] as core.String
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
mavenConfig: json_.containsKey('mavenConfig')
? MavenRepositoryConfig.fromJson(
json_['mavenConfig'] as core.Map<core.String, core.dynamic>)
: null,
mode: json_.containsKey('mode') ? json_['mode'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
remoteRepositoryConfig: json_.containsKey('remoteRepositoryConfig')
? RemoteRepositoryConfig.fromJson(json_['remoteRepositoryConfig']
as core.Map<core.String, core.dynamic>)
: null,
satisfiesPzi: json_.containsKey('satisfiesPzi')
? json_['satisfiesPzi'] as core.bool
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
sizeBytes: json_.containsKey('sizeBytes')
? json_['sizeBytes'] as core.String
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
virtualRepositoryConfig: json_.containsKey('virtualRepositoryConfig')
? VirtualRepositoryConfig.fromJson(
json_['virtualRepositoryConfig']
as core.Map<core.String, core.dynamic>)
: null,
);