UNPKG

wallee

Version:
31 lines (30 loc) 1.14 kB
import { ProductPeriodFeeFromJSON, } from './ProductPeriodFee'; /** * Check if a given object implements the ProductPeriodFeeSearchResponse interface. */ export function instanceOfProductPeriodFeeSearchResponse(value) { return true; } export function ProductPeriodFeeSearchResponseFromJSON(json) { return ProductPeriodFeeSearchResponseFromJSONTyped(json, false); } export function ProductPeriodFeeSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(ProductPeriodFeeFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function ProductPeriodFeeSearchResponseToJSON(json) { return ProductPeriodFeeSearchResponseToJSONTyped(json, false); } export function ProductPeriodFeeSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }