public comment(dynamic json) { jsonObj = json; if (jsonObj != null) { message = jsonObj.message; id = jsonObj.id; if (jsonObj.from != null) { from = new from(jsonObj.from); } if (jsonObj.target != null) { target = new target(jsonObj.target); } } }
public attachment(dynamic json) { jsonObj = json; if (jsonObj != null) { description = jsonObj.description; title = jsonObj.title; type = jsonObj.type; url = jsonObj.url; if (jsonObj.media != null) { media = new media(jsonObj.media); } if (jsonObj.target != null) { target = new target(jsonObj.target); } } }