UNPKG

wallee

Version:
30 lines (29 loc) 1.08 kB
import { SubscriptionChargeFromJSON, } from './SubscriptionCharge'; /** * Check if a given object implements the SubscriptionChargeListResponse interface. */ export function instanceOfSubscriptionChargeListResponse(value) { return true; } export function SubscriptionChargeListResponseFromJSON(json) { return SubscriptionChargeListResponseFromJSONTyped(json, false); } export function SubscriptionChargeListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionChargeFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function SubscriptionChargeListResponseToJSON(json) { return SubscriptionChargeListResponseToJSONTyped(json, false); } export function SubscriptionChargeListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }