toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'name': name,
'type': type,
if (position != null) 'position': position,
if (parameters != null) 'parameters': parameters,
if (credentials != null) 'credentials': credentials,
if (disabled != null) 'disabled': disabled,
if (notes != null) 'notes': notes,
if (notesInFlow != null) 'notesInFlow': notesInFlow,
if (retryOnFail != null) 'retryOnFail': retryOnFail,
if (maxTries != null) 'maxTries': maxTries,
if (waitBetweenTries != null) 'waitBetweenTries': waitBetweenTries,
if (continueOnFail != null) 'continueOnFail': continueOnFail,
if (pairedItem != null) 'pairedItem': pairedItem,
if (onError != null) 'onError': onError,
if (typeVersion != null) 'typeVersion': typeVersion,
if (alwaysOutputData != null) 'alwaysOutputData': alwaysOutputData,
if (executeOnce != null) 'executeOnce': executeOnce,
};
}