wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.02 kB
JavaScript
import { PaymentMethodFromJSON, } from './PaymentMethod';
/**
* Check if a given object implements the PaymentMethodListResponse interface.
*/
export function instanceOfPaymentMethodListResponse(value) {
return true;
}
export function PaymentMethodListResponseFromJSON(json) {
return PaymentMethodListResponseFromJSONTyped(json, false);
}
export function PaymentMethodListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(PaymentMethodFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function PaymentMethodListResponseToJSON(json) {
return PaymentMethodListResponseToJSONTyped(json, false);
}
export function PaymentMethodListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}