AppVersion class

Release version milestone configured for the application.

Returned by GET /api/v1/public/versions/:appKey.

Example

final versions = await client.fetchVersions();
final active = versions.where((v) => !v.released);
print('Upcoming versions: ${active.map((v) => v.label).join(', ')}');

Constructors

AppVersion({required String id, required String appId, required String label, required int position, required bool released, String? releasedAt, String? description, required String createdAt, required String updatedAt})
Creates an AppVersion milestone record.
const
AppVersion.fromJson(Map<String, dynamic> json)
Deserializes AppVersion from a JSON map.
factory

Properties

appId String
Identifier of the parent application.
final
createdAt String
ISO 8601 creation timestamp string.
final
description String?
Optional release notes summary or milestone description.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique database ID of the version milestone.
final
label String
Version label for display (e.g. '2.1.0', 'Summer 2026').
final
position int
Relative sort order position.
final
released bool
Whether this version has officially been shipped and released.
final
releasedAt String?
ISO 8601 release timestamp string, if released.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt String
ISO 8601 last-update timestamp string.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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