decodePrimitiveValue method

  1. @override
Object decodePrimitiveValue(
  1. ModelDB db,
  2. Object? value
)
override

Implementation

@override
Object decodePrimitiveValue(ModelDB db, Object? value) {
  if (value == null) return [];
  if (value is! List) return [subProperty.decodePrimitiveValue(db, value)];
  return value
      .map((entry) => subProperty.decodePrimitiveValue(db, entry))
      .toList();
}