toJson method
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'id': id,
'command': command,
'phase': phase,
if (description != null) 'description': description,
if (timeoutSeconds != null) 'timeoutSeconds': timeoutSeconds,
};