decodePrimitiveValue method

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

Implementation

@override
Object? decodePrimitiveValue(ModelDB db, Object? value) {
  if (value is int) {
    return DateTime.fromMillisecondsSinceEpoch(value ~/ 1000, isUtc: true);
  }
  return value;
}