UNPKG

wallee

Version:
30 lines (29 loc) 963 B
/** * Check if a given object implements the ResultPortionModel interface. */ export function instanceOfResultPortionModel(value) { return true; } export function ResultPortionModelFromJSON(json) { return ResultPortionModelFromJSONTyped(json, false); } export function ResultPortionModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'offset': json['offset'] == null ? undefined : json['offset'], 'limit': json['limit'] == null ? undefined : json['limit'], 'totalCount': json['totalCount'] == null ? undefined : json['totalCount'], 'items': json['items'] == null ? undefined : json['items'], }; } export function ResultPortionModelToJSON(json) { return ResultPortionModelToJSONTyped(json, false); } export function ResultPortionModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }