AutomaticTapeCreationPolicyInfo.fromJson constructor

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

Implementation

factory AutomaticTapeCreationPolicyInfo.fromJson(Map<String, dynamic> json) {
  return AutomaticTapeCreationPolicyInfo(
    automaticTapeCreationRules: (json['AutomaticTapeCreationRules'] as List?)
        ?.whereNotNull()
        .map((e) =>
            AutomaticTapeCreationRule.fromJson(e as Map<String, dynamic>))
        .toList(),
    gatewayARN: json['GatewayARN'] as String?,
  );
}