ULinkInstallationInfo.fromJson constructor

ULinkInstallationInfo.fromJson(
  1. Map<String, dynamic> json
)

Creates a ULinkInstallationInfo from a JSON map

Implementation

factory ULinkInstallationInfo.fromJson(Map<String, dynamic> json) {
  return ULinkInstallationInfo(
    installationId: json['installationId'] as String? ?? '',
    isReinstall: json['isReinstall'] as bool? ?? false,
    previousInstallationId: json['previousInstallationId'] as String?,
    reinstallDetectedAt: json['reinstallDetectedAt'] as String?,
    persistentDeviceId: json['persistentDeviceId'] as String?,
  );
}