UNPKG

wallee

Version:
31 lines (30 loc) 1.09 kB
import { StaticValueFromJSON, } from './StaticValue'; /** * Check if a given object implements the StaticValueSearchResponse interface. */ export function instanceOfStaticValueSearchResponse(value) { return true; } export function StaticValueSearchResponseFromJSON(json) { return StaticValueSearchResponseFromJSONTyped(json, false); } export function StaticValueSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(StaticValueFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function StaticValueSearchResponseToJSON(json) { return StaticValueSearchResponseToJSONTyped(json, false); } export function StaticValueSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }