UNPKG

wallee

Version:
37 lines (36 loc) 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfChargeAttemptListResponse = instanceOfChargeAttemptListResponse; exports.ChargeAttemptListResponseFromJSON = ChargeAttemptListResponseFromJSON; exports.ChargeAttemptListResponseFromJSONTyped = ChargeAttemptListResponseFromJSONTyped; exports.ChargeAttemptListResponseToJSON = ChargeAttemptListResponseToJSON; exports.ChargeAttemptListResponseToJSONTyped = ChargeAttemptListResponseToJSONTyped; const ChargeAttempt_1 = require("./ChargeAttempt"); /** * Check if a given object implements the ChargeAttemptListResponse interface. */ function instanceOfChargeAttemptListResponse(value) { return true; } function ChargeAttemptListResponseFromJSON(json) { return ChargeAttemptListResponseFromJSONTyped(json, false); } function ChargeAttemptListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(ChargeAttempt_1.ChargeAttemptFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function ChargeAttemptListResponseToJSON(json) { return ChargeAttemptListResponseToJSONTyped(json, false); } function ChargeAttemptListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }