<PackageReference Include="Relativity.Kepler" Version="2.23.1" />

TransformHelpers

public static class TransformHelpers
DynamicToStatic
public static void CheckForRequiredKeys(ExpandoObject expando, List<string> requiredKeys)

public static bool DoesOneOfTheseKeysExist(ExpandoObject expando, List<string> requiredKeys, bool willThrow = true)

Checks an Expando Object for at least one of the given keys.

public static bool ExpandoContainsKey(ExpandoObject expando, string key)

Check an expando object for a given key.

public static List<Guid> ObjectAsListObjectToListGuid(object input, string propertyName)

Converts an expected List of objects to a List of Guids.

public static int ObjectAsLongToInt(object input, string propertyName)

Attempts to convert an expected Long to an Integer.

public static object ObjectListToTypedList(object input, string propertyName)

Converts a List of Objects to a List of a Type, where the Type is determined by the Type of the first object in the list.