toUpdateResource method
create the attributes Map for this object using only the attributes allowed in update (patch) operations
Implementation
Map<String, dynamic> toUpdateResource() {
var retval = toJson();
retval['attributes'] = filteredAttributes(updateAllowed);
return retval;
}