Mix.Tasks.Nativegen.Swift.Model

Append json model to existing client code.

Example

mix nativegen.swift.model User username:string first_name:string last_name:string age:integer items:array:Item

Summary

append_file(content, file)

Insert json model into your exisiting swift file

build_json_params(params)
build_json_parser(params)
generate_json_model(singular, params)

Generate json model from name and params

json_param(atom, variable, type)
json_parse_method(type)
json_parser(type, variable)
json_parser(atom, var, type)
run(args)

Callback implementation for c:Mix.Task.run/1

show_on_shell(content)

Show json model on shell

Functions

append_file(content, file)

Insert json model into your exisiting swift file

build_json_params(params)
build_json_parser(params)
generate_json_model(singular, params)

Generate json model from name and params

json_param(atom, variable, type)
json_parse_method(type)
json_parser(type, variable)
json_parser(atom, var, type)
run(args)

Callback implementation for c:Mix.Task.run/1.

show_on_shell(content)

Show json model on shell