DeviceModel class

Annotations
  • @freezed

Constructors

DeviceModel({int? id, @JsonKey(name: 'device_id') String? deviceId, @JsonKey(name: 'device_type') String? deviceType, @JsonKey(name: 'device_token') String? deviceToken, @JsonKey(name: 'os_version') String? osVersion, String? name, @JsonKey(name: 'app_version') String? appVersion, @JsonKey(name: 'user_id') int? userId, @JsonKey(name: 'open_app_at') DateTime? openAppAt, @JsonKey(name: 'created_at') DateTime? createdAt, @JsonKey(name: 'updated_at') DateTime? updatedAt, @JsonKey(name: 'deleted_at') dynamic deletedAt})
factory
DeviceModel.fromJson(Map<String, dynamic> json)
factory

Properties

appVersion String?
no setterinherited
copyWith → $DeviceModelCopyWith<DeviceModel>
no setterinherited
createdAt DateTime?
no setterinherited
deletedAt → dynamic
no setterinherited
deviceId String?
no setterinherited
deviceToken String?
no setterinherited
deviceType String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int?
no setterinherited
name String?
no setterinherited
openAppAt DateTime?
no setterinherited
osVersion String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt DateTime?
no setterinherited
userId int?
no setterinherited

Methods

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

Operators

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