GetMLTransformResponse.fromJson constructor
GetMLTransformResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetMLTransformResponse.fromJson(Map<String, dynamic> json) {
return GetMLTransformResponse(
createdOn: timeStampFromJson(json['CreatedOn']),
description: json['Description'] as String?,
evaluationMetrics: json['EvaluationMetrics'] != null
? EvaluationMetrics.fromJson(
json['EvaluationMetrics'] as Map<String, dynamic>)
: null,
glueVersion: json['GlueVersion'] as String?,
inputRecordTables: (json['InputRecordTables'] as List?)
?.whereNotNull()
.map((e) => GlueTable.fromJson(e as Map<String, dynamic>))
.toList(),
labelCount: json['LabelCount'] as int?,
lastModifiedOn: timeStampFromJson(json['LastModifiedOn']),
maxCapacity: json['MaxCapacity'] as double?,
maxRetries: json['MaxRetries'] as int?,
name: json['Name'] as String?,
numberOfWorkers: json['NumberOfWorkers'] as int?,
parameters: json['Parameters'] != null
? TransformParameters.fromJson(
json['Parameters'] as Map<String, dynamic>)
: null,
role: json['Role'] as String?,
schema: (json['Schema'] as List?)
?.whereNotNull()
.map((e) => SchemaColumn.fromJson(e as Map<String, dynamic>))
.toList(),
status: (json['Status'] as String?)?.toTransformStatusType(),
timeout: json['Timeout'] as int?,
transformEncryption: json['TransformEncryption'] != null
? TransformEncryption.fromJson(
json['TransformEncryption'] as Map<String, dynamic>)
: null,
transformId: json['TransformId'] as String?,
workerType: (json['WorkerType'] as String?)?.toWorkerType(),
);
}