toCreateResource method
create the attributes Map for this object without the id
field
using only the attributes allowed in create (post) operations
Implementation
Map<String, dynamic> toCreateResource() {
var retval = toJson();
retval['attributes'] = filteredAttributes(createAllowed);
// never allow an id on a 'create' resource
retval.remove('id');
return retval;
}