toMap method

Map<String, dynamic> toMap()

Converts this payload to a plain Map suitable for encoding.

Implementation

Map<String, dynamic> toMap() => {
      if (sub != null) 'sub': sub,
      if (iss != null) 'iss': iss,
      if (aud != null) 'aud': aud,
      if (exp != null) 'exp': exp,
      if (nbf != null) 'nbf': nbf,
      if (iat != null) 'iat': iat,
      if (jti != null) 'jti': jti,
      ...extra,
    };