DeviceMeta class

DeviceMeta - Model for the device meta

Properties

brand String?
getter/setter pair
countryCode String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
manufacturer String?
getter/setter pair
metaData Map<String, dynamic>
getter/setter pair
model String?
getter/setter pair
name String?
getter/setter pair
platformType String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAgent String?
getter/setter pair
uuid String?
getter/setter pair
version String?
getter/setter pair

Methods

fromJson(Map<String, dynamic> data) → dynamic
Set the device meta from a data json map
getMetaData<T>(String key) → T?
Get a key from device meta
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
to json map
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance DeviceMeta
final

Static Methods

getData({String storageKey = "device_meta", Map<String, dynamic> metaData = const {}}) Future<Map<String, dynamic>>
Get the device meta
init({required String storageKey, Map<String, dynamic> metaData = const {}}) Future<DeviceMeta>
Initialize the device meta