class DataClass {
final String value;
const DataClass({this.value = ''});
DataClass? fromMap(Map map) {
if (map.isEmpty) return null;
return DataClass(
value: map['value'],
);
}
Map toMap() => {
'value': value,
}
}