UNPKG

wallee

Version:
38 lines (37 loc) 1.59 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfChargeAttemptSearchResponse = instanceOfChargeAttemptSearchResponse; exports.ChargeAttemptSearchResponseFromJSON = ChargeAttemptSearchResponseFromJSON; exports.ChargeAttemptSearchResponseFromJSONTyped = ChargeAttemptSearchResponseFromJSONTyped; exports.ChargeAttemptSearchResponseToJSON = ChargeAttemptSearchResponseToJSON; exports.ChargeAttemptSearchResponseToJSONTyped = ChargeAttemptSearchResponseToJSONTyped; const ChargeAttempt_1 = require("./ChargeAttempt"); /** * Check if a given object implements the ChargeAttemptSearchResponse interface. */ function instanceOfChargeAttemptSearchResponse(value) { return true; } function ChargeAttemptSearchResponseFromJSON(json) { return ChargeAttemptSearchResponseFromJSONTyped(json, false); } function ChargeAttemptSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(ChargeAttempt_1.ChargeAttemptFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function ChargeAttemptSearchResponseToJSON(json) { return ChargeAttemptSearchResponseToJSONTyped(json, false); } function ChargeAttemptSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }