DescribeHumanLoopResponse.fromJson constructor

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

Implementation

factory DescribeHumanLoopResponse.fromJson(Map<String, dynamic> json) {
  return DescribeHumanLoopResponse(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    flowDefinitionArn: json['FlowDefinitionArn'] as String,
    humanLoopArn: json['HumanLoopArn'] as String,
    humanLoopName: json['HumanLoopName'] as String,
    humanLoopStatus: (json['HumanLoopStatus'] as String).toHumanLoopStatus(),
    failureCode: json['FailureCode'] as String?,
    failureReason: json['FailureReason'] as String?,
    humanLoopOutput: json['HumanLoopOutput'] != null
        ? HumanLoopOutput.fromJson(
            json['HumanLoopOutput'] as Map<String, dynamic>)
        : null,
  );
}