/// <summary> /// Creates a new model from the specified Couchbase object. /// </summary> /// <returns>A new model.</returns> /// <param name="dictionaryObject">Dictionary object.</param> public static Contact Create(DictionaryObject dictionaryObject) { return(new Contact( contactType: dictionaryObject.ParseEnum <ContactType>(JsonProperties.Type), contactMethod: dictionaryObject.ParseEnum <ContactMethod>(JsonProperties.Method), contactValue: dictionaryObject.GetString(JsonProperties.Contact))); }