/// <summary>
 /// Deserialzes JSON into a <see cref="JwtPayload"/> instance.
 /// </summary>
 /// <param name="jsonString">the JSON to deserialize.</param>
 /// <returns>an instance of <see cref="JwtPayload"/>.</returns>
 /// <remarks>use <see cref="JsonExtensions.Deserializer"/> to customize JSON serialization.</remarks>
 public static JwtPayload Deserialize(string jsonString)
 {
     return(JsonExtensions.DeserializeJwtPayload(jsonString));
 }
 /// <summary>
 /// Deserializes Base64UrlEncoded JSON into a <see cref="JwtPayload"/> instance.
 /// </summary>
 /// <param name="base64UrlEncodedJsonString">base64url encoded JSON to deserialize.</param>
 /// <returns>an instance of <see cref="JwtPayload"/>.</returns>
 /// <remarks>use <see cref="JsonExtensions.Deserializer"/> to customize JSON serialization.</remarks>
 public static JwtPayload Base64UrlDeserialize(string base64UrlEncodedJsonString)
 {
     return(JsonExtensions.DeserializeJwtPayload(Base64UrlEncoder.Decode(base64UrlEncodedJsonString)));
 }