UNPKG

wallee

Version:
30 lines (29 loc) 1.13 kB
import { SubscriptionLedgerEntryFromJSON, } from './SubscriptionLedgerEntry'; /** * Check if a given object implements the SubscriptionLedgerEntryListResponse interface. */ export function instanceOfSubscriptionLedgerEntryListResponse(value) { return true; } export function SubscriptionLedgerEntryListResponseFromJSON(json) { return SubscriptionLedgerEntryListResponseFromJSONTyped(json, false); } export function SubscriptionLedgerEntryListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionLedgerEntryFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function SubscriptionLedgerEntryListResponseToJSON(json) { return SubscriptionLedgerEntryListResponseToJSONTyped(json, false); } export function SubscriptionLedgerEntryListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }