wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.17 kB
JavaScript
import { PaymentMethodConfigurationFromJSON, } from './PaymentMethodConfiguration';
/**
* Check if a given object implements the PaymentMethodConfigurationListResponse interface.
*/
export function instanceOfPaymentMethodConfigurationListResponse(value) {
return true;
}
export function PaymentMethodConfigurationListResponseFromJSON(json) {
return PaymentMethodConfigurationListResponseFromJSONTyped(json, false);
}
export function PaymentMethodConfigurationListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(PaymentMethodConfigurationFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function PaymentMethodConfigurationListResponseToJSON(json) {
return PaymentMethodConfigurationListResponseToJSONTyped(json, false);
}
export function PaymentMethodConfigurationListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}