UNPKG

genie-uml

Version:

UML support for JHipster via XMI files

24 lines (19 loc) 378 B
'use strict'; const merge = require('../utils/object_utils').merge; /** * The class holding validation data. */ class ValidationData { constructor(values) { var merged = merge(defaults(), values); this.name = merged.name; this.value = merged.value; } } module.exports = ValidationData; function defaults() { return { name: '', value: null }; }