fromMap static method
Deserialize from JSON
Implementation
static TaskHistoryEntry fromMap(Map<String, dynamic> map) {
return TaskHistoryEntry(
executionId: map['executionId'] as String,
taskName: map['taskName'] as String,
startTime: DateTime.parse(map['startTime'] as String),
endTime: map['endTime'] != null ? DateTime.parse(map['endTime'] as String) : null,
status: map['status'] as String,
attempt: map['attempt'] as int,
maxAttempts: map['maxAttempts'] as int,
error: map['error'] as String?,
stackTrace: map['stackTrace'] as String?,
input: map['input'] as Map<String, dynamic>?,
output: map['output'] as Map<String, dynamic>?,
);
}