import type { SubscriptionPlanGroup } from './SubscriptionPlanGroup'; import { subscriptionPlanGroupFromJson } from './SubscriptionPlanGroup'; /** * Response containing subscription plan groups with pagination information. */ export interface SubscriptionPlanGroupsResponse { /** Total number of plan groups. */ count?: number; /** Indicates whether there are more results available. */ hasNext?: boolean; /** Indicates whether there are previous results available. */ hasPrevious?: boolean; /** List of subscription plan groups. */ planGroups?: SubscriptionPlanGroup[]; } export function subscriptionPlanGroupsResponseFromJson(jsonMap: { [key: string]: any; }): SubscriptionPlanGroupsResponse { return { count: jsonMap.count, hasNext: jsonMap.hasNext, hasPrevious: jsonMap.hasPrevious, planGroups: jsonMap.planGroups?.map(subscriptionPlanGroupFromJson), }; }