HTMLInput.from constructor
Implementation
factory HTMLInput.from(MapEntry<String, Object> entry) {
var name = entry.key;
var type = entry.value;
if (type is TypeInfo) {
return HTMLInput(name, type);
} else if (type is Type) {
return HTMLInput(name, TypeInfo.fromType(type));
} else {
return HTMLInput(name, TypeInfo.from(type));
}
}