DeviceNameMismatch class abstract

There is a mismatch between the name of the device in the server and the one in the mobile device application.

Fixing this mismatch when invoking DeviceInformationSync will update the values in all servers with the values in the mobile device application.

If you rather have the value in the server to be used, you can provide the name returned by nameInServer, and execute a DeviceInformationChange operation with that value.

Inheritance

Constructors

DeviceNameMismatch({required String nameInServer, required String nameInMobileDevice, required Server server})
Default constructor for DeviceNameMismatch.
factory
DeviceNameMismatch.fromJson(Map<String, dynamic> json)
Alternate constructor that creates a DeviceNameMismatch from a json.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
nameInMobileDevice String
The name of the device in the mobile application (that is, as returned by DeviceInformation.name through LocalData.deviceInformation).
no setter
nameInServer String
The name of the device in the server.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server Server
The server where the mismatch occurs.
no setter

Methods

fromJson(Map<String, dynamic> json) → dynamic
Returns a value of the type you specify, deserialized from a JSON object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON-encoded representation of the value you supply.
inherited
toString() String
A string representation of this object.
inherited

Operators

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