wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.22 kB
JavaScript
import { SubscriptionLedgerEntryFromJSON, } from './SubscriptionLedgerEntry';
/**
* Check if a given object implements the SubscriptionLedgerEntrySearchResponse interface.
*/
export function instanceOfSubscriptionLedgerEntrySearchResponse(value) {
return true;
}
export function SubscriptionLedgerEntrySearchResponseFromJSON(json) {
return SubscriptionLedgerEntrySearchResponseFromJSONTyped(json, false);
}
export function SubscriptionLedgerEntrySearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionLedgerEntryFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function SubscriptionLedgerEntrySearchResponseToJSON(json) {
return SubscriptionLedgerEntrySearchResponseToJSONTyped(json, false);
}
export function SubscriptionLedgerEntrySearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}