BackupRun.fromJson constructor

BackupRun.fromJson(
  1. Map _json
)

Implementation

BackupRun.fromJson(core.Map _json)
    : this(
        backupKind: _json.containsKey('backupKind')
            ? _json['backupKind'] as core.String
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        diskEncryptionConfiguration:
            _json.containsKey('diskEncryptionConfiguration')
                ? DiskEncryptionConfiguration.fromJson(
                    _json['diskEncryptionConfiguration']
                        as core.Map<core.String, core.dynamic>)
                : null,
        diskEncryptionStatus: _json.containsKey('diskEncryptionStatus')
            ? DiskEncryptionStatus.fromJson(_json['diskEncryptionStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        endTime: _json.containsKey('endTime')
            ? _json['endTime'] as core.String
            : null,
        enqueuedTime: _json.containsKey('enqueuedTime')
            ? _json['enqueuedTime'] as core.String
            : null,
        error: _json.containsKey('error')
            ? OperationError.fromJson(
                _json['error'] as core.Map<core.String, core.dynamic>)
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        instance: _json.containsKey('instance')
            ? _json['instance'] as core.String
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        location: _json.containsKey('location')
            ? _json['location'] as core.String
            : null,
        selfLink: _json.containsKey('selfLink')
            ? _json['selfLink'] as core.String
            : null,
        startTime: _json.containsKey('startTime')
            ? _json['startTime'] as core.String
            : null,
        status: _json.containsKey('status')
            ? _json['status'] as core.String
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
        windowStartTime: _json.containsKey('windowStartTime')
            ? _json['windowStartTime'] as core.String
            : null,
      );