UpdateModuleRequest constructor

UpdateModuleRequest({
  1. String? moduleId,
  2. Visibility? visibility,
  3. String? url,
  4. String? description,
  5. Iterable<Model>? models,
  6. String? entrypoint,
  7. String? firstRun,
})

Implementation

factory UpdateModuleRequest({
  $core.String? moduleId,
  Visibility? visibility,
  $core.String? url,
  $core.String? description,
  $core.Iterable<Model>? models,
  $core.String? entrypoint,
  $core.String? firstRun,
}) {
  final $result = create();
  if (moduleId != null) {
    $result.moduleId = moduleId;
  }
  if (visibility != null) {
    $result.visibility = visibility;
  }
  if (url != null) {
    $result.url = url;
  }
  if (description != null) {
    $result.description = description;
  }
  if (models != null) {
    $result.models.addAll(models);
  }
  if (entrypoint != null) {
    $result.entrypoint = entrypoint;
  }
  if (firstRun != null) {
    $result.firstRun = firstRun;
  }
  return $result;
}