toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (componentId != null) 'componentId': componentId!,
if (data != null) 'data': data!,
if (location != null) 'location': location!,
if (workerId != null) 'workerId': workerId!,
};