DescribeTaskExecutionResponse.fromJson constructor

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

Implementation

factory DescribeTaskExecutionResponse.fromJson(Map<String, dynamic> json) {
  return DescribeTaskExecutionResponse(
    bytesTransferred: json['BytesTransferred'] as int?,
    bytesWritten: json['BytesWritten'] as int?,
    estimatedBytesToTransfer: json['EstimatedBytesToTransfer'] as int?,
    estimatedFilesToTransfer: json['EstimatedFilesToTransfer'] as int?,
    excludes: (json['Excludes'] as List?)
        ?.whereNotNull()
        .map((e) => FilterRule.fromJson(e as Map<String, dynamic>))
        .toList(),
    filesTransferred: json['FilesTransferred'] as int?,
    includes: (json['Includes'] as List?)
        ?.whereNotNull()
        .map((e) => FilterRule.fromJson(e as Map<String, dynamic>))
        .toList(),
    options: json['Options'] != null
        ? Options.fromJson(json['Options'] as Map<String, dynamic>)
        : null,
    result: json['Result'] != null
        ? TaskExecutionResultDetail.fromJson(
            json['Result'] as Map<String, dynamic>)
        : null,
    startTime: timeStampFromJson(json['StartTime']),
    status: (json['Status'] as String?)?.toTaskExecutionStatus(),
    taskExecutionArn: json['TaskExecutionArn'] as String?,
  );
}