toJson method
Implementation
Map<String, dynamic> toJson() => {
'pushRegistrationId': pushRegistrationId,
'pushServiceToken': pushServiceToken,
'pushServiceType': pushServiceType != null ? describeEnum(pushServiceType!) : null,
'isPrimaryDevice': isPrimaryDevice,
'isPushRegistrationEnabled': isPushRegistrationEnabled,
'notificationsEnabled': notificationsEnabled,
'geoEnabled': geoEnabled,
'sdkVersion': sdkVersion,
'appVersion': appVersion,
'os': os != null ? describeEnum(os!) : null,
'osVersion': osVersion,
'deviceManufacturer': deviceManufacturer,
'deviceModel': deviceModel,
'deviceSecure': deviceSecure,
'language': language,
'deviceTimezoneOffset': deviceTimezoneOffset,
'applicationUserId': applicationUserId,
'deviceName': deviceName,
'customAttributes': customAttributes,
};