BackupConfiguration.fromJson constructor

BackupConfiguration.fromJson(
  1. Map _json
)

Implementation

BackupConfiguration.fromJson(core.Map _json)
    : this(
        backupRetentionSettings: _json.containsKey('backupRetentionSettings')
            ? BackupRetentionSettings.fromJson(
                _json['backupRetentionSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        binaryLogEnabled: _json.containsKey('binaryLogEnabled')
            ? _json['binaryLogEnabled'] as core.bool
            : null,
        enabled: _json.containsKey('enabled')
            ? _json['enabled'] as core.bool
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        location: _json.containsKey('location')
            ? _json['location'] as core.String
            : null,
        pointInTimeRecoveryEnabled:
            _json.containsKey('pointInTimeRecoveryEnabled')
                ? _json['pointInTimeRecoveryEnabled'] as core.bool
                : null,
        replicationLogArchivingEnabled:
            _json.containsKey('replicationLogArchivingEnabled')
                ? _json['replicationLogArchivingEnabled'] as core.bool
                : null,
        startTime: _json.containsKey('startTime')
            ? _json['startTime'] as core.String
            : null,
        transactionLogRetentionDays:
            _json.containsKey('transactionLogRetentionDays')
                ? _json['transactionLogRetentionDays'] as core.int
                : null,
      );