toMap method
Map representation of object (not serialized)
Implementation
Map<String, dynamic> toMap() {
return {
'id': id,
'object': object,
'created_at': createdAt,
'assistant_id': assistantId,
'thread_id': threadId,
'run_id': runId,
'type': type,
'status': status,
'step_details': stepDetails,
'last_error': lastError,
'expired_at': expiredAt,
'cancelled_at': cancelledAt,
'failed_at': failedAt,
'completed_at': completedAt,
'metadata': metadata,
'usage': usage,
};
}