toJson method

  1. @override
Map<String, dynamic> toJson()
override

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,
};