fromJson static method

LogStreamFile? fromJson(
  1. Map<String, dynamic>? json
)
override

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,
  );
}