// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

package armrecoveryservicesbackup

import "encoding/json"

// UnmarshalJSON implements the json.Unmarshaller interface for type BMSPrepareDataMoveOperationResultClientGetResponse.
func (b *BMSPrepareDataMoveOperationResultClientGetResponse) UnmarshalJSON(data []byte) error {
	res, err := unmarshalVaultStorageConfigOperationResultResponseClassification(data)
	if err != nil {
		return err
	}
	b.VaultStorageConfigOperationResultResponseClassification = res
	return nil
}

// MarshalJSON implements the json.Marshaller interface for type FetchTieringCostClientPostResponse.
func (f FetchTieringCostClientPostResponse) MarshalJSON() ([]byte, error) {
	return json.Marshal(f.TieringCostInfoClassification)
}

// UnmarshalJSON implements the json.Unmarshaller interface for type FetchTieringCostClientPostResponse.
func (f *FetchTieringCostClientPostResponse) UnmarshalJSON(data []byte) error {
	res, err := unmarshalTieringCostInfoClassification(data)
	if err != nil {
		return err
	}
	f.TieringCostInfoClassification = res
	return nil
}

// UnmarshalJSON implements the json.Unmarshaller interface for type GetTieringCostOperationResultClientGetResponse.
func (g *GetTieringCostOperationResultClientGetResponse) UnmarshalJSON(data []byte) error {
	res, err := unmarshalTieringCostInfoClassification(data)
	if err != nil {
		return err
	}
	g.TieringCostInfoClassification = res
	return nil
}
