toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    "uid": userId,
    "iss": issuer,
    "jti": tokenID,
    "sub": subject,
    "iat": issuedAtDate.millisecondsSinceEpoch,
    if (expireDate != null) "exp": expireDate!.millisecondsSinceEpoch,
    if (audience != null) "aud": audience,
    if (additional != null) "add": additional,
    ...?additional
  };
}