UNPKG

wallee

Version:
30 lines (29 loc) 1 kB
import { PaymentLinkFromJSON, } from './PaymentLink'; /** * Check if a given object implements the PaymentLinkListResponse interface. */ export function instanceOfPaymentLinkListResponse(value) { return true; } export function PaymentLinkListResponseFromJSON(json) { return PaymentLinkListResponseFromJSONTyped(json, false); } export function PaymentLinkListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(PaymentLinkFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function PaymentLinkListResponseToJSON(json) { return PaymentLinkListResponseToJSONTyped(json, false); } export function PaymentLinkListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }