UNPKG

wallee

Version:
31 lines (30 loc) 1.11 kB
import { ChargeAttemptFromJSON, } from './ChargeAttempt'; /** * Check if a given object implements the ChargeAttemptSearchResponse interface. */ export function instanceOfChargeAttemptSearchResponse(value) { return true; } export function ChargeAttemptSearchResponseFromJSON(json) { return ChargeAttemptSearchResponseFromJSONTyped(json, false); } export function ChargeAttemptSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(ChargeAttemptFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function ChargeAttemptSearchResponseToJSON(json) { return ChargeAttemptSearchResponseToJSONTyped(json, false); } export function ChargeAttemptSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }