public static Task <T> GetAsJson <T>(this IContentSet contentSet, string name, JsonSerializerOptions?serializerOptions = null) { if (contentSet is null) { throw new ArgumentNullException(nameof(contentSet)); } return(contentSet.GetAsJsonInternal <T>(name, serializerOptions)); }