public static CommentObject fromDynamic(dynamic comData) { CommentObject comment = new CommentObject() { Id = comData.id, Comment = comData.comment, Smiles = comData.smiles, Answer = AnswerObject.fromDynamic(comData.answer), User = UserObject.fromDynamicSlim(comData.user), CreatedWith = ApplicationRefObject.fromDynamic(comData.created_with), CreatedAt = comData.created_at }; return comment; }
public static CommentObject fromDynamic(dynamic comData) { CommentObject comment = new CommentObject() { Id = comData.id, Comment = comData.comment, Smiles = comData.smiles, Answer = AnswerObject.fromDynamic(comData.answer), User = UserObject.fromDynamicSlim(comData.user), CreatedWith = ApplicationRefObject.fromDynamic(comData.created_with), CreatedAt = comData.created_at }; return(comment); }