ActionExecutionOutput.fromJson constructor
ActionExecutionOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ActionExecutionOutput.fromJson(Map<String, dynamic> json) {
return ActionExecutionOutput(
executionResult: json['executionResult'] != null
? ActionExecutionResult.fromJson(
json['executionResult'] as Map<String, dynamic>)
: null,
outputArtifacts: (json['outputArtifacts'] as List?)
?.whereNotNull()
.map((e) => ArtifactDetail.fromJson(e as Map<String, dynamic>))
.toList(),
outputVariables: (json['outputVariables'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}