get method
Convert database value to model property value
Implementation
@override
List<String>? get(dynamic value) {
if (value == null) return null;
if (value is List<String>) return value;
if (value is List) return value.map((e) => e.toString()).toList();
if (value is String) {
try {
final decoded = jsonDecode(value);
if (decoded is List) {
return decoded.map((e) => e.toString()).toList();
}
} catch (_) {
return null;
}
}
return null;
}