fromJson static method
Inherited by: LogStreamDefault LogStreamEmpty LogStreamFile
Implementation
static LogStreamFile? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return LogStreamFile(
path: (json['path'] as String?) ?? '',
maxFileSize: (json['max_file_size'] as int?) ?? 0,
redirectStderr: (json['redirect_stderr'] as bool?) ?? false,
);
}