AuthToken.fromMap constructor

AuthToken.fromMap(
  1. Map<String, dynamic> params
)

Implementation

AuthToken.fromMap(Map<String, dynamic> params) {
  _key = params[keyKey];
  startTime = int.parse(params[startTimeKey] ?? "0");
  _expiration = int.parse(params[expirationKey] ?? "0");
  ip = params[ipKey];
  acl = params[aclKey];
  _duration = int.parse(params[durationKey] ?? "0");
}