TypeConversion
enum TypeConversion
Helper for converting types for en-/decoding
-
Provides conversion string for type
Declaration
Swift
static func toString(data from: String) -> StringParameters
fromtype which needs to be converted
Return Value
conversion string
-
Provides encoding string
Declaration
Swift
static func getEncodingString(id: String, type: String, required: Bool) -> StringParameters
idname of variable
typetype of variable
requiredtrue if variable is required
Return Value
Encoding string
-
Provides decoding string
Declaration
Swift
static func getDecodingString(id: String, type: String) -> StringParameters
idname of variable
typetype of variable
Return Value
Decoding string
-
Get initializer string for default values.
Declaration
Swift
static func getDefaultValueInit(type: String, defaultValue: String) -> StringParameters
typetype of default value
defaultValuedefaullt value string (e.g. JSON if complex)
Return Value
initializer string
View on GitHub
TypeConversion Enumeration Reference