custom static method
Insertable<AppUsageAuditData>
custom(
{ - Expression<int>? id,
- Expression<DateTime>? createdAt,
- Expression<String>? date,
- Expression<String>? packageName,
- Expression<int>? totalTimeVisible,
- Expression<int>? totalTimeInForeground,
- Expression<int>? totalTimeForegroundServiceUsed,
})
Implementation
static Insertable<AppUsageAuditData> custom({
Expression<int>? id,
Expression<DateTime>? createdAt,
Expression<String>? date,
Expression<String>? packageName,
Expression<int>? totalTimeVisible,
Expression<int>? totalTimeInForeground,
Expression<int>? totalTimeForegroundServiceUsed,
}) {
return RawValuesInsertable({
if (id != null) 'id': id,
if (createdAt != null) 'created_at': createdAt,
if (date != null) 'date': date,
if (packageName != null) 'package_name': packageName,
if (totalTimeVisible != null) 'total_time_visible': totalTimeVisible,
if (totalTimeInForeground != null)
'total_time_in_foreground': totalTimeInForeground,
if (totalTimeForegroundServiceUsed != null)
'total_time_foreground_service_used': totalTimeForegroundServiceUsed,
});
}