CognitoDevice class

A device tracked by AWS Cognito.

Inheritance
Available Extensions
Annotations
  • @immutable

Constructors

CognitoDevice({required String id, String? name, Map<String, String>? attributes, DateTime? createdDate, DateTime? lastAuthenticatedDate, DateTime? lastModifiedDate})
A device tracked by AWS Cognito.
const
CognitoDevice.fromJson(Map<String, Object?> json)
A device tracked by AWS Cognito.
factory

Properties

attributes Map<String, String>?
Device attributes.
final
createdDate DateTime?
The date this device was created.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Device unique identifier.
final
lastAuthenticatedDate DateTime?
The date this device was last authenticated.
final
lastModifiedDate DateTime?
The date this device was last updated.
final
name String?
Device name.
no setteroverride
props List<Object?>
The type's equatable properties.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Converts the instance to a JSON map.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

deviceNameKey → const String
Attribute key for retrieving a device's name.