Token.fromMap constructor

Token.fromMap(
  1. Map<String, dynamic> map
)

Implementation

Token.fromMap(Map<String, dynamic> map)
    : this(
        map['userId'],
        map['idToken'],
        map['refreshToken'],
        DateTime.parse(map['expiry']),
      );