wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.02 kB
JavaScript
import { ChargeAttemptFromJSON, } from './ChargeAttempt';
/**
* Check if a given object implements the ChargeAttemptListResponse interface.
*/
export function instanceOfChargeAttemptListResponse(value) {
return true;
}
export function ChargeAttemptListResponseFromJSON(json) {
return ChargeAttemptListResponseFromJSONTyped(json, false);
}
export function ChargeAttemptListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ChargeAttemptFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function ChargeAttemptListResponseToJSON(json) {
return ChargeAttemptListResponseToJSONTyped(json, false);
}
export function ChargeAttemptListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}