copyWith method

ServerInformation copyWith({
  1. String? baseUrl,
  2. DateTime? buildDate,
  3. int? buildNumber,
  4. String? deploymentType,
  5. List<HealthCheckResult>? healthChecks,
  6. String? scmInfo,
  7. DateTime? serverTime,
  8. String? serverTitle,
  9. String? version,
  10. List<int>? versionNumbers,
})

Implementation

ServerInformation copyWith(
    {String? baseUrl,
    DateTime? buildDate,
    int? buildNumber,
    String? deploymentType,
    List<HealthCheckResult>? healthChecks,
    String? scmInfo,
    DateTime? serverTime,
    String? serverTitle,
    String? version,
    List<int>? versionNumbers}) {
  return ServerInformation(
    baseUrl: baseUrl ?? this.baseUrl,
    buildDate: buildDate ?? this.buildDate,
    buildNumber: buildNumber ?? this.buildNumber,
    deploymentType: deploymentType ?? this.deploymentType,
    healthChecks: healthChecks ?? this.healthChecks,
    scmInfo: scmInfo ?? this.scmInfo,
    serverTime: serverTime ?? this.serverTime,
    serverTitle: serverTitle ?? this.serverTitle,
    version: version ?? this.version,
    versionNumbers: versionNumbers ?? this.versionNumbers,
  );
}