#pragma warning restore 612, 618 public static byte[] ToJsonBytes(this ITypedElement source, FhirJsonSerializationSettings settings = null) => SerializationUtil.WriteJsonToBytes(writer => source.WriteTo(writer, settings));