TableRestoreStatus.fromXml constructor

TableRestoreStatus.fromXml(
  1. XmlElement elem
)

Implementation

factory TableRestoreStatus.fromXml(_s.XmlElement elem) {
  return TableRestoreStatus(
    clusterIdentifier: _s.extractXmlStringValue(elem, 'ClusterIdentifier'),
    message: _s.extractXmlStringValue(elem, 'Message'),
    newTableName: _s.extractXmlStringValue(elem, 'NewTableName'),
    progressInMegaBytes: _s.extractXmlIntValue(elem, 'ProgressInMegaBytes'),
    requestTime: _s.extractXmlDateTimeValue(elem, 'RequestTime'),
    snapshotIdentifier: _s.extractXmlStringValue(elem, 'SnapshotIdentifier'),
    sourceDatabaseName: _s.extractXmlStringValue(elem, 'SourceDatabaseName'),
    sourceSchemaName: _s.extractXmlStringValue(elem, 'SourceSchemaName'),
    sourceTableName: _s.extractXmlStringValue(elem, 'SourceTableName'),
    status:
        _s.extractXmlStringValue(elem, 'Status')?.toTableRestoreStatusType(),
    tableRestoreRequestId:
        _s.extractXmlStringValue(elem, 'TableRestoreRequestId'),
    targetDatabaseName: _s.extractXmlStringValue(elem, 'TargetDatabaseName'),
    targetSchemaName: _s.extractXmlStringValue(elem, 'TargetSchemaName'),
    totalDataInMegaBytes: _s.extractXmlIntValue(elem, 'TotalDataInMegaBytes'),
  );
}