 #       name:
 #         presence: true
 #         format: with: /^[A-Z].+/
-#
-#     @to:
-#       id          : tag: "b", class: 'person-id'
-#       name        : tag: "span", class: "person-name"
-#       group       : tag: "p", class: "group"
 #
 #     to_string: () ->
 #       "name: #{name}; id: #{id}, group count: #{@get('group').length}"

#
#   class MyModel extends Sirius.BaseModel
#     @attrs: ["id", {title: "default title"}, "description"]
#     @to:
#       id          : tag: "b", class: 'my-model-id'
#       title       : tag: "span", class: "my-model-title"
#
#   class Person extends BaseModel
#     @attrs: ["id", "name"]
#
#     @has_many: [Group]
#
#     @form_name: "person-model"
#
#     @guid_for: id
#

      JSON.stringify(o)
    else
      JSON.stringify(z)

  # Create a new model instance from json structure.
  # @param json [JSON] - json object
