CloudLoginDevice class final

Model CloudLoginDevice (schemas/cloud/1.0/cloud.schema.json#/$defs/loginDevice).

Annotations
  • @immutable

Constructors

CloudLoginDevice({required String sessionId, required String client, String? userAgent, bool? current, required String createdAt, String? lastUsedAt, Map<String, Object?> extra = const {}})
Creates a CloudLoginDevice.
const
CloudLoginDevice.fromJson(Map<String, Object?> json, [String path = ''])
Decodes json; throws FormatException (with the JSON path) on a missing required member or a type mismatch. Unknown members and explicit nulls go to extra.
factory

Properties

client → String
client member.
final
createdAt → String
RFC 3339 UTC with milliseconds, e.g. 2026-10-19T12:00:00.000Z.
final
current → bool?
current member.
final
extra → Map<String, Object?>
Members this version does not model (incl. x-* extensions and explicit nulls); written back by toJson.
final
hashCode → int
The hash code for this object.
no setteroverride
lastUsedAt → String?
RFC 3339 UTC with milliseconds, e.g. 2026-10-19T12:00:00.000Z.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionId → String
Any RFC 9562 UUID, lowercase (e.g. .dome meta.id written by older tools).
final
userAgent → String?
userAgent member.
final

Methods

copyWith({String? sessionId, String? client, String? userAgent, bool? current, String? createdAt, String? lastUsedAt, Map<String, Object?>? extra}) → CloudLoginDevice
A copy with the given members replaced (a member cannot be reset to null this way).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Encodes to JSON (absent members omitted, extra merged back).
toString() → String
A string representation of this object.
override

Operators

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