JobSummary.fromJson constructor
JobSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory JobSummary.fromJson(Map<String, dynamic> json) {
return JobSummary(
jobId: json['jobId'] as String,
jobName: json['jobName'] as String,
arrayProperties: json['arrayProperties'] != null
? ArrayPropertiesSummary.fromJson(
json['arrayProperties'] as Map<String, dynamic>)
: null,
container: json['container'] != null
? ContainerSummary.fromJson(json['container'] as Map<String, dynamic>)
: null,
createdAt: json['createdAt'] as int?,
jobArn: json['jobArn'] as String?,
nodeProperties: json['nodeProperties'] != null
? NodePropertiesSummary.fromJson(
json['nodeProperties'] as Map<String, dynamic>)
: null,
startedAt: json['startedAt'] as int?,
status: (json['status'] as String?)?.toJobStatus(),
statusReason: json['statusReason'] as String?,
stoppedAt: json['stoppedAt'] as int?,
);
}