ScheduledQueryRun.fromJson constructor
ScheduledQueryRun.fromJson(
- Object? json
Implementation
factory ScheduledQueryRun.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return ScheduledQueryRun(
created:
DateTime.fromMillisecondsSinceEpoch((map['created'] as int).toInt()),
dataLoadTime: DateTime.fromMillisecondsSinceEpoch(
(map['data_load_time'] as int).toInt()),
error: map['error'] == null
? null
: SigmaScheduledQueryRunError.fromJson(map['error']),
file: map['file'] == null ? null : File.fromJson(map['file']),
id: (map['id'] as String),
livemode: (map['livemode'] as bool),
resultAvailableUntil: DateTime.fromMillisecondsSinceEpoch(
(map['result_available_until'] as int).toInt()),
sql: (map['sql'] as String),
status: (map['status'] as String),
title: (map['title'] as String),
);
}