Bump libre-graph-go to latest main branch
To get sharing endpoints and audio/photo/location facets
This commit is contained in:
committed by
Ralf Haferkamp
parent
62d8a03400
commit
b436e49f19
+13
-6
@@ -14,6 +14,9 @@ import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the PasswordChange type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &PasswordChange{}
|
||||
|
||||
// PasswordChange struct for PasswordChange
|
||||
type PasswordChange struct {
|
||||
CurrentPassword string `json:"currentPassword"`
|
||||
@@ -88,16 +91,20 @@ func (o *PasswordChange) SetNewPassword(v string) {
|
||||
}
|
||||
|
||||
func (o PasswordChange) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if true {
|
||||
toSerialize["currentPassword"] = o.CurrentPassword
|
||||
}
|
||||
if true {
|
||||
toSerialize["newPassword"] = o.NewPassword
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o PasswordChange) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
toSerialize["currentPassword"] = o.CurrentPassword
|
||||
toSerialize["newPassword"] = o.NewPassword
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullablePasswordChange struct {
|
||||
value *PasswordChange
|
||||
isSet bool
|
||||
|
||||
Reference in New Issue
Block a user