toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': type,
'prompt': prompt,
if (sourceUuid != null) 'source_uuid': sourceUuid,
if (imagePasteIds != null) 'imagePasteIds': imagePasteIds,
if (commandMode != null) 'commandMode': commandMode,
};