FastRestoreRule.fromJson constructor

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

Implementation

factory FastRestoreRule.fromJson(Map<String, dynamic> json) {
  return FastRestoreRule(
    availabilityZones: (json['AvailabilityZones'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    count: json['Count'] as int?,
    interval: json['Interval'] as int?,
    intervalUnit:
        (json['IntervalUnit'] as String?)?.toRetentionIntervalUnitValues(),
  );
}