wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.17 kB
JavaScript
import { PaymentMethodBrandFromJSON, } from './PaymentMethodBrand';
/**
* Check if a given object implements the PaymentMethodBrandSearchResponse interface.
*/
export function instanceOfPaymentMethodBrandSearchResponse(value) {
return true;
}
export function PaymentMethodBrandSearchResponseFromJSON(json) {
return PaymentMethodBrandSearchResponseFromJSONTyped(json, false);
}
export function PaymentMethodBrandSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(PaymentMethodBrandFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function PaymentMethodBrandSearchResponseToJSON(json) {
return PaymentMethodBrandSearchResponseToJSONTyped(json, false);
}
export function PaymentMethodBrandSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}