toJson method
The wire shape.
Implementation
Json toJson() => {
...raw,
'id': id,
'site_id': siteId,
'email': email,
'name': name,
'phone': phone,
'external_id': externalId,
'custom_data': customData,
'locale': locale?.code,
'client': client,
'app': app?.toJson(),
'current_screen': currentScreen,
'visits': visits,
};