Node.fromJson constructor
Implementation
factory Node.fromJson(Map<String, dynamic> json) {
return Node(
id: json['id'] ?? '',
name: json['name'] ?? '',
type: json['type'] ?? '',
position: json['position'] != null
? List<double>.from(json['position'].map((p) => (p as num).toDouble()))
: null,
parameters: json['parameters'] != null
? Map<String, dynamic>.from(json['parameters'])
: null,
credentials: json['credentials'] != null
? Map<String, dynamic>.from(json['credentials'])
: null,
disabled: json['disabled'],
notes: json['notes'],
notesInFlow: json['notesInFlow'],
retryOnFail: json['retryOnFail'],
maxTries: json['maxTries'],
waitBetweenTries: json['waitBetweenTries'],
continueOnFail: json['continueOnFail'],
pairedItem: json['pairedItem'],
onError: json['onError'],
typeVersion: json['typeVersion'],
alwaysOutputData: json['alwaysOutputData'],
executeOnce: json['executeOnce'],
);
}