UNPKG

wallee

Version:
30 lines (29 loc) 1.06 kB
import { PaymentProcessorFromJSON, } from './PaymentProcessor'; /** * Check if a given object implements the PaymentProcessorListResponse interface. */ export function instanceOfPaymentProcessorListResponse(value) { return true; } export function PaymentProcessorListResponseFromJSON(json) { return PaymentProcessorListResponseFromJSONTyped(json, false); } export function PaymentProcessorListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(PaymentProcessorFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function PaymentProcessorListResponseToJSON(json) { return PaymentProcessorListResponseToJSONTyped(json, false); } export function PaymentProcessorListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }