|
@@ -960,10 +960,9 @@ type StoreInfo struct {
|
|
|
func (o StoreInfo) MarshalJSON() ([]byte, error) {
|
|
|
toSerialize := map[string]interface{}{}
|
|
|
|
|
|
- if o.Id == nil {
|
|
|
- return nil, fmt.Errorf("field `Id` is required and must be specified in StoreInfo")
|
|
|
+ if o.Id != nil {
|
|
|
+ toSerialize["id"] = o.Id
|
|
|
}
|
|
|
- toSerialize["id"] = o.Id
|
|
|
|
|
|
if o.Name != nil {
|
|
|
toSerialize["name"] = o.Name
|