Token.fromMap constructor

Token.fromMap(
  1. Map map
)

Token.fromMap(Map map) is a named constructor that creates a new instance of the Token class from a Map object. It takes a Map object as an argument and uses its values to initialize the properties of the Token object.

Implementation

Token.fromMap(Map map)
    : this(
          tokenString: map['tokenString'],
          origin: TokenOrigin.fromString(map['origin']),
          expirationDate:
              SyneriseUtils.formatIntToDateTime(map['expirationDate']),
          rlm: map['rlm'],
          clientId: map['clientId'],
          customId: map['customId']);