func (p *updateContactContext) SetFromJSON(obj jsonhelper.JSONObject) { contact := new(dm.Contact) if obj == nil { contact = nil } else { json.Unmarshal([]byte(obj.String()), contact) } p.contact = contact }