toJson method
Implementation
Map<String, dynamic> toJson() => {
'name': name,
'kind': kind,
'touchpoint': touchpoint,
if (method != null) 'method': method,
'fromCall': fromCall,
'toCall': toCall,
'failure': failure,
'description': description,
};