VersionCheckResponse class

Response model from the version check API endpoint. This model matches the structure returned by /api/v1/public/version-check

Constructors

VersionCheckResponse({required bool hasUpdate, required bool isForceUpdate, String? title, String? versionCode, int? buildNumber, String? platform, String? releaseNotes, Map<String, dynamic>? uiConfig, int? rolloutPercentage, bool? isInRollout, String? storeUrl, String? appStoreLink})
VersionCheckResponse.fromJson(Map<String, dynamic> json)
Create from JSON response
factory

Properties

Store URL for the update (legacy field, kept for backward compatibility)
final
buildNumber → int?
Build number available
final
hashCode → int
The hash code for this object.
no setterinherited
hasUpdate → bool
Whether there is an update available
final
isForceUpdate → bool
Whether this is a forced update (user cannot dismiss)
final
isInRollout → bool?
Whether this user is in the rollout
final
platform → String?
Platform (FLUTTER, ANDROID, IOS)
final
releaseNotes → String?
Release notes for the new version
final
rolloutPercentage → int?
Rollout percentage (0-100)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storeUrl → String?
Store URL for the update (preferred field)
final
storeUrlToUse → String?
Get the store URL to use (prefers storeUrl over appStoreLink)
no setter
title → String?
Custom title for the update dialog
final
uiConfig → Map<String, dynamic>?
UI configuration (colors, texts, styles)
final
versionCode → String?
Version code available (SemVer format: 1.2.0)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert to JSON
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited