StepSummary.fromJson constructor

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

Implementation

factory StepSummary.fromJson(Map<String, dynamic> json) {
  return StepSummary(
    actionOnFailure:
        (json['ActionOnFailure'] as String?)?.toActionOnFailure(),
    config: json['Config'] != null
        ? HadoopStepConfig.fromJson(json['Config'] as Map<String, dynamic>)
        : null,
    id: json['Id'] as String?,
    name: json['Name'] as String?,
    status: json['Status'] != null
        ? StepStatus.fromJson(json['Status'] as Map<String, dynamic>)
        : null,
  );
}