AutomatedBackupPolicy.fromJson constructor

AutomatedBackupPolicy.fromJson(
  1. Map json_
)

Implementation

AutomatedBackupPolicy.fromJson(core.Map json_)
    : this(
        backupWindow: json_.containsKey('backupWindow')
            ? json_['backupWindow'] as core.String
            : null,
        enabled: json_.containsKey('enabled')
            ? json_['enabled'] as core.bool
            : null,
        encryptionConfig: json_.containsKey('encryptionConfig')
            ? EncryptionConfig.fromJson(json_['encryptionConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        quantityBasedRetention: json_.containsKey('quantityBasedRetention')
            ? QuantityBasedRetention.fromJson(json_['quantityBasedRetention']
                as core.Map<core.String, core.dynamic>)
            : null,
        timeBasedRetention: json_.containsKey('timeBasedRetention')
            ? TimeBasedRetention.fromJson(json_['timeBasedRetention']
                as core.Map<core.String, core.dynamic>)
            : null,
        weeklySchedule: json_.containsKey('weeklySchedule')
            ? WeeklySchedule.fromJson(json_['weeklySchedule']
                as core.Map<core.String, core.dynamic>)
            : null,
      );