Ingestion.fromJson constructor

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

Implementation

factory Ingestion.fromJson(Map<String, dynamic> json) {
  return Ingestion(
    arn: json['Arn'] as String,
    createdTime: nonNullableTimeStampFromJson(json['CreatedTime'] as Object),
    ingestionStatus: (json['IngestionStatus'] as String).toIngestionStatus(),
    errorInfo: json['ErrorInfo'] != null
        ? ErrorInfo.fromJson(json['ErrorInfo'] as Map<String, dynamic>)
        : null,
    ingestionId: json['IngestionId'] as String?,
    ingestionSizeInBytes: json['IngestionSizeInBytes'] as int?,
    ingestionTimeInSeconds: json['IngestionTimeInSeconds'] as int?,
    queueInfo: json['QueueInfo'] != null
        ? QueueInfo.fromJson(json['QueueInfo'] as Map<String, dynamic>)
        : null,
    requestSource:
        (json['RequestSource'] as String?)?.toIngestionRequestSource(),
    requestType: (json['RequestType'] as String?)?.toIngestionRequestType(),
    rowInfo: json['RowInfo'] != null
        ? RowInfo.fromJson(json['RowInfo'] as Map<String, dynamic>)
        : null,
  );
}