CrossRegionCopyAction.fromJson constructor

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

Implementation

factory CrossRegionCopyAction.fromJson(Map<String, dynamic> json) {
  return CrossRegionCopyAction(
    encryptionConfiguration: EncryptionConfiguration.fromJson(
        json['EncryptionConfiguration'] as Map<String, dynamic>),
    target: json['Target'] as String,
    retainRule: json['RetainRule'] != null
        ? CrossRegionCopyRetainRule.fromJson(
            json['RetainRule'] as Map<String, dynamic>)
        : null,
  );
}