DescribeFlowDefinitionResponse.fromJson constructor
DescribeFlowDefinitionResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeFlowDefinitionResponse.fromJson(Map<String, dynamic> json) {
return DescribeFlowDefinitionResponse(
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
flowDefinitionArn: json['FlowDefinitionArn'] as String,
flowDefinitionName: json['FlowDefinitionName'] as String,
flowDefinitionStatus:
(json['FlowDefinitionStatus'] as String).toFlowDefinitionStatus(),
humanLoopConfig: HumanLoopConfig.fromJson(
json['HumanLoopConfig'] as Map<String, dynamic>),
outputConfig: FlowDefinitionOutputConfig.fromJson(
json['OutputConfig'] as Map<String, dynamic>),
roleArn: json['RoleArn'] as String,
failureReason: json['FailureReason'] as String?,
humanLoopActivationConfig: json['HumanLoopActivationConfig'] != null
? HumanLoopActivationConfig.fromJson(
json['HumanLoopActivationConfig'] as Map<String, dynamic>)
: null,
humanLoopRequestSource: json['HumanLoopRequestSource'] != null
? HumanLoopRequestSource.fromJson(
json['HumanLoopRequestSource'] as Map<String, dynamic>)
: null,
);
}