toJson method
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'type': type.name,
'source': source.name,
'targetId': targetId,
'data': _toWireValue(data),
'active': active,
'timestampUs': timestampMicrosecondsSinceEpoch,
};