toJson method
Mapping Installation to json.
Implementation
Map<String, dynamic> toJson() => {
'pushRegistrationId': pushRegistrationId,
'pushServiceToken': pushServiceToken,
'pushServiceType': pushServiceType?.name,
'isPrimaryDevice': isPrimaryDevice,
'isPushRegistrationEnabled': isPushRegistrationEnabled,
'notificationsEnabled': notificationsEnabled,
'sdkVersion': sdkVersion,
'appVersion': appVersion,
'os': os?.name,
'osVersion': osVersion,
'deviceManufacturer': deviceManufacturer,
'deviceModel': deviceModel,
'deviceSecure': deviceSecure,
'language': language,
'deviceTimezoneOffset': deviceTimezoneOffset,
'applicationUserId': applicationUserId,
'deviceName': deviceName,
'customAttributes': customAttributes,
};