MetaWeblogApi.convertStoryToStruct (entry)
Utility function which creates an Object representing a blog entry

Sourcecode in MetaWeblogApi/metaWeblogAPI.js:
1:   function convertStoryToStruct (entry) {
2:      var obj = new Object();
3:      obj.userid = entry.creator ? entry.creator.name : null;
4:      obj.postid = entry._id;
5:      obj.dateCreated = entry.createtime;
6:      obj.title = entry.content.getProperty("title");
7:      obj.description = entry.content.getProperty("text");
8:      obj.categories = entry.topic ? new Array(entry.topic) : new Array();
9:      obj.flNotOnHomePage = entry.online==1 ? true : false;
10:     obj.link = entry.href();
11:     obj.permaLink = obj.link;
12:     obj.mt_excerpt = null;
13:     obj.mt_text_more = null;
14:     obj.mt_allow_comments = entry.discussions ? 1 : 0;
15:     obj.mt_allow_pings = 0;
16:     obj.mt_convert_breaks = null;
17:     obj.mt_keywords = null;
18:     obj.antville_blogid = entry.site.alias;
19:     return obj;
20:  }