GetSecretVersionResult.fromMap constructor
GetSecretVersionResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetSecretVersionResult.fromMap(Map<String, dynamic> map) {
return GetSecretVersionResult(
arn: map['arn'] as String,
createdDate: map['createdDate'] as String,
id: map['id'] as String,
region: map['region'] as String,
secretArn: map['secretArn'] as String,
secretBinary: map['secretBinary'] as String,
secretId: map['secretId'] as String,
secretString: map['secretString'] as String,
versionId: map['versionId'] as String,
versionStage: (() { final guardedValue = map['versionStage']; if (guardedValue == null) return null; return guardedValue as String; })(),
versionStages: (map['versionStages'] as List).cast<String>(),
);
}