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