DeviceMetadata class

Additional device metadata stored in the optional deviceInfo field.

Contains non-essential device information that may be useful for debugging, analytics, or device identification.

Annotations
  • @JsonSerializable.new()

Constructors

DeviceMetadata({String? model, String? osVersion})
const
DeviceMetadata.fromJson(Map<String, dynamic> json)
Creates a DeviceMetadata from JSON data.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
model → String?
Device model name (e.g., "iPhone 14 Pro", "Pixel 7")
final
osVersion → String?
Operating system version (e.g., "iOS 17.2", "Android 14")
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? model, String? osVersion}) → DeviceMetadata
Creates a copy of this metadata with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this DeviceMetadata to JSON data.
toString() → String
A string representation of this object.
override

Operators

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