public static async Task <byte[]> ToJsonBytesAsync(this ITypedElement source, FhirJsonSerializationSettings settings = null) => await SerializationUtil.WriteJsonToBytesAsync(async writer => await source.WriteToAsync(writer, settings).ConfigureAwait(false)).ConfigureAwait(false);