UNPKG

wallee

Version:
30 lines (29 loc) 1.03 kB
import { SubscriptionSuspensionFromJSON, } from './SubscriptionSuspension'; /** * Check if a given object implements the SuspensionListResponse interface. */ export function instanceOfSuspensionListResponse(value) { return true; } export function SuspensionListResponseFromJSON(json) { return SuspensionListResponseFromJSONTyped(json, false); } export function SuspensionListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionSuspensionFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function SuspensionListResponseToJSON(json) { return SuspensionListResponseToJSONTyped(json, false); } export function SuspensionListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }