UNPKG

wallee

Version:
37 lines (36 loc) 1.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSuspensionListResponse = instanceOfSuspensionListResponse; exports.SuspensionListResponseFromJSON = SuspensionListResponseFromJSON; exports.SuspensionListResponseFromJSONTyped = SuspensionListResponseFromJSONTyped; exports.SuspensionListResponseToJSON = SuspensionListResponseToJSON; exports.SuspensionListResponseToJSONTyped = SuspensionListResponseToJSONTyped; const SubscriptionSuspension_1 = require("./SubscriptionSuspension"); /** * Check if a given object implements the SuspensionListResponse interface. */ function instanceOfSuspensionListResponse(value) { return true; } function SuspensionListResponseFromJSON(json) { return SuspensionListResponseFromJSONTyped(json, false); } function SuspensionListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionSuspension_1.SubscriptionSuspensionFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function SuspensionListResponseToJSON(json) { return SuspensionListResponseToJSONTyped(json, false); } function SuspensionListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }