View source

class thx.Convert

Available on all platforms

Class Fields

static function toArray<T>(value:Dynamic, convert:Dynamic -> T):Array<T>

static function toArrayBool(value:Dynamic):Array<Bool>

static function toArrayBoolOr(value:Dynamic, alt:Array<Bool>):Array<Bool>

static function toArrayDate(value:Dynamic):Array<Date>

static function toArrayDateOr(value:Dynamic, alt:Array<Date>):Array<Date>

static function toArrayDateTime(value:Dynamic):Array<DateTime>

static function toArrayDateTimeOr(value:Dynamic, alt:Array<DateTime>):Array<DateTime>

static function toArrayFloat(value:Dynamic):Array<Float>

static function toArrayFloatOr(value:Dynamic, alt:Array<Float>):Array<Float>

static function toArrayInt(value:Dynamic):Array<Int>

static function toArrayIntOr(value:Dynamic, alt:Array<Int>):Array<Int>

static function toArrayObject(value:Dynamic):Array<{}>

static function toArrayObjectOr(value:Dynamic, alt:Array<{}>):Array<{}>

static function toArrayString(value:Dynamic):Array<String>

static function toArrayStringOr(value:Dynamic, alt:Array<String>):Array<String>

static function toBool(value:Dynamic):Bool

static function toBoolOr(value:Dynamic, alt:Bool):Bool

static function toDate(value:Dynamic):Date

static function toDateOr(value:Dynamic, alt:Date):Date

static function toDateTime(value:Dynamic):Null<DateTime>

static function toDateTimeOr(value:Dynamic, alt:DateTime):Null<DateTime>

static function toDateTimeUtc(value:Dynamic):Null<DateTimeUtc>

static function toDateTimeUtcOr(value:Dynamic, alt:DateTimeUtc):Null<DateTimeUtc>

static function toFloat(value:Dynamic):Float

static function toFloatOr(value:Dynamic, alt:Float):Float

static function toInt(value:Dynamic):Int

static function toIntOr(value:Dynamic, alt:Int):Int

static function toMap<T>(value:Dynamic, convert:Dynamic -> T):Map<String, T>

static function toObject(value:Dynamic):{}

static function toObjectOr(value:Dynamic, alt:{}):{}

static function toString(value:Dynamic):String

static function toStringOr(value:Dynamic, alt:String):String

Toggle inherited fields