public static string GeofenceTypeToString(GeofenceType type) { return(type switch { GeofenceType.Circle => "circle", GeofenceType.Geofence => "geofence", _ => type.ToString(), });