toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'op': op,
if (id != null) 'id': id,
if (type != null) 'type': type,
if (topic != null) 'topic': topic,
if (msg != null) 'msg': msg,
if (latch != null) 'latch': latch,
if (compression != null) 'compression': compression,
if (throttleRate != null) 'throttle_rate': throttleRate,
if (queueLength != null) 'queue_length': queueLength,
if (queueSize != null) 'queue_size': queueSize,
if (service != null) 'service': service,
if (args != null) 'args': args,
if (values != null) 'values': values,
if (result != null) 'result': result,
};
}