toJson method

Map<String, dynamic> toJson()

Converts this instance to a JSON map

Implementation

Map<String, dynamic> toJson() {
  return {
    'installationId': installationId,
    'isReinstall': isReinstall,
    if (previousInstallationId != null)
      'previousInstallationId': previousInstallationId,
    if (reinstallDetectedAt != null)
      'reinstallDetectedAt': reinstallDetectedAt,
    if (persistentDeviceId != null) 'persistentDeviceId': persistentDeviceId,
  };
}