UNPKG

wallee

Version:
30 lines (29 loc) 989 B
import { PaymentTerminalFromJSON, } from './PaymentTerminal'; /** * Check if a given object implements the TerminalListResponse interface. */ export function instanceOfTerminalListResponse(value) { return true; } export function TerminalListResponseFromJSON(json) { return TerminalListResponseFromJSONTyped(json, false); } export function TerminalListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(PaymentTerminalFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function TerminalListResponseToJSON(json) { return TerminalListResponseToJSONTyped(json, false); } export function TerminalListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }