toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'projectRoot': projectRoot,
  'name': name,
  'socketPath': socketPath,
  'pid': pid,
  'startedAt': startedAt.toUtc().toIso8601String(),
  if (baseUrl != null) 'baseUrl': baseUrl,
  if (environment != null) 'environment': environment,
  'protocol': protocol,
};