toJSON method
Implementation
Map<String, dynamic> toJSON() {
final obj = <String, dynamic>{
'type': type,
'invocationId': invocationId,
};
obj.writeNotNull('headers', headers);
obj.writeNotNull('error', error);
obj.writeNotNull('result', result);
return obj;
}