attributes

  • property
can.Map.attributes.static.attributes  

can.Map.attributes is a property that contains key/value pair(s) of an attribute's name and its respective type for using in convert and serialize.

var Contact = can.Map.extend({
    attributes : {
        birthday : 'date',
        age: 'number',
        name: 'string'
    }
});