wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.08 kB
JavaScript
import { PaymentMethodBrandFromJSON, } from './PaymentMethodBrand';
/**
* Check if a given object implements the PaymentMethodBrandListResponse interface.
*/
export function instanceOfPaymentMethodBrandListResponse(value) {
return true;
}
export function PaymentMethodBrandListResponseFromJSON(json) {
return PaymentMethodBrandListResponseFromJSONTyped(json, false);
}
export function PaymentMethodBrandListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(PaymentMethodBrandFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function PaymentMethodBrandListResponseToJSON(json) {
return PaymentMethodBrandListResponseToJSONTyped(json, false);
}
export function PaymentMethodBrandListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}