fromDefault static method
Implementation
static DVCVariable fromDefault(String key, dynamic defaultValue) {
String mapType = defaultValue.runtimeType.toString().toLowerCase();
return DVCVariable(
key: key,
value: defaultValue,
type: VariableType.values
.firstWhereOrNull((e) => e.toString() == "VariableType.$mapType")
);
}