public static async Task <global::IdentityServer4.Models.PersistedGrant> ToPersistedGrantAsync(
            this PersistedGrantModel model)
        {
            var result = await model.MakePersistedGrantAsync();

            return(result);
        }
        public static global::IdentityServer4.Models.PersistedGrant ToPersistedGrant(this PersistedGrantModel model)
        {
            var result = model.ToPersistedGrantAsync();

            return(result.Result);
        }