JobFlowDetail.fromJson constructor
JobFlowDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
factory JobFlowDetail.fromJson(Map<String, dynamic> json) {
return JobFlowDetail(
executionStatusDetail: JobFlowExecutionStatusDetail.fromJson(
json['ExecutionStatusDetail'] as Map<String, dynamic>),
instances: JobFlowInstancesDetail.fromJson(
json['Instances'] as Map<String, dynamic>),
jobFlowId: json['JobFlowId'] as String,
name: json['Name'] as String,
amiVersion: json['AmiVersion'] as String?,
autoScalingRole: json['AutoScalingRole'] as String?,
bootstrapActions: (json['BootstrapActions'] as List?)
?.whereNotNull()
.map((e) => BootstrapActionDetail.fromJson(e as Map<String, dynamic>))
.toList(),
jobFlowRole: json['JobFlowRole'] as String?,
logEncryptionKmsKeyId: json['LogEncryptionKmsKeyId'] as String?,
logUri: json['LogUri'] as String?,
scaleDownBehavior:
(json['ScaleDownBehavior'] as String?)?.toScaleDownBehavior(),
serviceRole: json['ServiceRole'] as String?,
steps: (json['Steps'] as List?)
?.whereNotNull()
.map((e) => StepDetail.fromJson(e as Map<String, dynamic>))
.toList(),
supportedProducts: (json['SupportedProducts'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
visibleToAllUsers: json['VisibleToAllUsers'] as bool?,
);
}