wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.11 kB
JavaScript
import { ChargeBankTransactionFromJSON, } from './ChargeBankTransaction';
/**
* Check if a given object implements the ChargeBankTransactionListResponse interface.
*/
export function instanceOfChargeBankTransactionListResponse(value) {
return true;
}
export function ChargeBankTransactionListResponseFromJSON(json) {
return ChargeBankTransactionListResponseFromJSONTyped(json, false);
}
export function ChargeBankTransactionListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ChargeBankTransactionFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function ChargeBankTransactionListResponseToJSON(json) {
return ChargeBankTransactionListResponseToJSONTyped(json, false);
}
export function ChargeBankTransactionListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}