SecretVolume.fromJson constructor
SecretVolume.fromJson(
- Object? j
Implementation
factory SecretVolume.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SecretVolume(
mountPath: switch (json['mountPath']) {
null => '',
Object $1 => decodeString($1),
},
projectId: switch (json['projectId']) {
null => '',
Object $1 => decodeString($1),
},
secret: switch (json['secret']) {
null => '',
Object $1 => decodeString($1),
},
versions: switch (json['versions']) {
null => [],
List<Object?> $1 => [
for (final i in $1) SecretVolume_SecretVersion.fromJson(i),
],
_ => throw const FormatException('"versions" is not a list'),
},
);
}