ReplicationTask.fromJson constructor

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

Implementation

factory ReplicationTask.fromJson(Map<String, dynamic> json) {
  return ReplicationTask(
    cdcStartPosition: json['CdcStartPosition'] as String?,
    cdcStopPosition: json['CdcStopPosition'] as String?,
    lastFailureMessage: json['LastFailureMessage'] as String?,
    migrationType: (json['MigrationType'] as String?)?.toMigrationTypeValue(),
    recoveryCheckpoint: json['RecoveryCheckpoint'] as String?,
    replicationInstanceArn: json['ReplicationInstanceArn'] as String?,
    replicationTaskArn: json['ReplicationTaskArn'] as String?,
    replicationTaskCreationDate:
        timeStampFromJson(json['ReplicationTaskCreationDate']),
    replicationTaskIdentifier: json['ReplicationTaskIdentifier'] as String?,
    replicationTaskSettings: json['ReplicationTaskSettings'] as String?,
    replicationTaskStartDate:
        timeStampFromJson(json['ReplicationTaskStartDate']),
    replicationTaskStats: json['ReplicationTaskStats'] != null
        ? ReplicationTaskStats.fromJson(
            json['ReplicationTaskStats'] as Map<String, dynamic>)
        : null,
    sourceEndpointArn: json['SourceEndpointArn'] as String?,
    status: json['Status'] as String?,
    stopReason: json['StopReason'] as String?,
    tableMappings: json['TableMappings'] as String?,
    targetEndpointArn: json['TargetEndpointArn'] as String?,
    targetReplicationInstanceArn:
        json['TargetReplicationInstanceArn'] as String?,
    taskData: json['TaskData'] as String?,
  );
}