PuroGlobalPrefsModel constructor

PuroGlobalPrefsModel({
  1. String? defaultEnvironment,
  2. String? lastUpdateCheck,
  3. String? lastUpdateNotification,
  4. bool? enableUpdateCheck,
  5. bool? enableProfileUpdate,
  6. String? profileOverride,
})

Implementation

factory PuroGlobalPrefsModel({
  $core.String? defaultEnvironment,
  $core.String? lastUpdateCheck,
  $core.String? lastUpdateNotification,
  $core.bool? enableUpdateCheck,
  $core.bool? enableProfileUpdate,
  $core.String? profileOverride,
}) {
  final _result = create();
  if (defaultEnvironment != null) {
    _result.defaultEnvironment = defaultEnvironment;
  }
  if (lastUpdateCheck != null) {
    _result.lastUpdateCheck = lastUpdateCheck;
  }
  if (lastUpdateNotification != null) {
    _result.lastUpdateNotification = lastUpdateNotification;
  }
  if (enableUpdateCheck != null) {
    _result.enableUpdateCheck = enableUpdateCheck;
  }
  if (enableProfileUpdate != null) {
    _result.enableProfileUpdate = enableProfileUpdate;
  }
  if (profileOverride != null) {
    _result.profileOverride = profileOverride;
  }
  return _result;
}