public static PersonGroup ToPersonGroup(this MPOPersonGroup personGroup) { return(new PersonGroup { Id = personGroup.PersonGroupId, Name = personGroup.Name, UserData = personGroup.UserData }); }
public static PersonGroupModel ToPersonGroup(this MPOPersonGroup group) { return(new PersonGroupModel { Id = group.PersonGroupId, Name = group.Name // Dealing with a binding issue on UserData - since it's populated via a JSON NSDict, the value will be NSNull, but we're sending a Selector to it assuming it's an NSString //UserData = g.UserData }); }