CrossRegionCopyRule.fromJson constructor

CrossRegionCopyRule.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CrossRegionCopyRule.fromJson(Map<String, dynamic> json) {
  return CrossRegionCopyRule(
    encrypted: json['Encrypted'] as bool,
    targetRegion: json['TargetRegion'] as String,
    cmkArn: json['CmkArn'] as String?,
    copyTags: json['CopyTags'] as bool?,
    retainRule: json['RetainRule'] != null
        ? CrossRegionCopyRetainRule.fromJson(
            json['RetainRule'] as Map<String, dynamic>)
        : null,
  );
}