UNPKG

wallee

Version:
31 lines (30 loc) 1.17 kB
import { SubscriptionChargeFromJSON, } from './SubscriptionCharge'; /** * Check if a given object implements the SubscriptionChargeSearchResponse interface. */ export function instanceOfSubscriptionChargeSearchResponse(value) { return true; } export function SubscriptionChargeSearchResponseFromJSON(json) { return SubscriptionChargeSearchResponseFromJSONTyped(json, false); } export function SubscriptionChargeSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionChargeFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function SubscriptionChargeSearchResponseToJSON(json) { return SubscriptionChargeSearchResponseToJSONTyped(json, false); } export function SubscriptionChargeSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }