Module constructor

Module({
  1. String? moduleId,
  2. String? name,
  3. Visibility? visibility,
  4. Iterable<VersionHistory>? versions,
  5. String? url,
  6. String? description,
  7. Iterable<Model>? models,
  8. Int64? totalRobotUsage,
  9. Int64? totalOrganizationUsage,
  10. String? organizationId,
  11. String? entrypoint,
  12. String? publicNamespace,
  13. String? firstRun,
})

Implementation

factory Module({
  $core.String? moduleId,
  $core.String? name,
  Visibility? visibility,
  $core.Iterable<VersionHistory>? versions,
  $core.String? url,
  $core.String? description,
  $core.Iterable<Model>? models,
  $fixnum.Int64? totalRobotUsage,
  $fixnum.Int64? totalOrganizationUsage,
  $core.String? organizationId,
  $core.String? entrypoint,
  $core.String? publicNamespace,
  $core.String? firstRun,
}) {
  final $result = create();
  if (moduleId != null) {
    $result.moduleId = moduleId;
  }
  if (name != null) {
    $result.name = name;
  }
  if (visibility != null) {
    $result.visibility = visibility;
  }
  if (versions != null) {
    $result.versions.addAll(versions);
  }
  if (url != null) {
    $result.url = url;
  }
  if (description != null) {
    $result.description = description;
  }
  if (models != null) {
    $result.models.addAll(models);
  }
  if (totalRobotUsage != null) {
    $result.totalRobotUsage = totalRobotUsage;
  }
  if (totalOrganizationUsage != null) {
    $result.totalOrganizationUsage = totalOrganizationUsage;
  }
  if (organizationId != null) {
    $result.organizationId = organizationId;
  }
  if (entrypoint != null) {
    $result.entrypoint = entrypoint;
  }
  if (publicNamespace != null) {
    $result.publicNamespace = publicNamespace;
  }
  if (firstRun != null) {
    $result.firstRun = firstRun;
  }
  return $result;
}