toJson method
Convert CallParams to JSON format
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = {
'callType': callType.value,
'serviceName': serviceName,
};
if (methodName != null) json['methodName'] = methodName;
if (memberName != null) json['memberName'] = memberName;
if (args != null) json['args'] = args;
if (_instanceId != null) json['_instanceId'] = _instanceId;
if (_instanceType != null) json['_instanceType'] = _instanceType!.index;
if (_traceId != null) json['_traceId'] = _traceId;
if (waitResult != null) json['waitResult'] = waitResult;
return json;
}