Fragment constructor

Fragment({
  1. String? id,
  2. String? name,
  3. Struct? fragment,
  4. String? organizationOwner,
  5. bool? public,
  6. Timestamp? createdOn,
  7. String? organizationName,
  8. int? robotPartCount,
  9. int? organizationCount,
  10. bool? onlyUsedByOwner,
  11. FragmentVisibility? visibility,
  12. Timestamp? lastUpdated,
})

Implementation

factory Fragment({
  $core.String? id,
  $core.String? name,
  $43.Struct? fragment,
  $core.String? organizationOwner,
  $core.bool? public,
  $44.Timestamp? createdOn,
  $core.String? organizationName,
  $core.int? robotPartCount,
  $core.int? organizationCount,
  $core.bool? onlyUsedByOwner,
  FragmentVisibility? visibility,
  $44.Timestamp? lastUpdated,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (name != null) {
    $result.name = name;
  }
  if (fragment != null) {
    $result.fragment = fragment;
  }
  if (organizationOwner != null) {
    $result.organizationOwner = organizationOwner;
  }
  if (public != null) {
    $result.public = public;
  }
  if (createdOn != null) {
    $result.createdOn = createdOn;
  }
  if (organizationName != null) {
    $result.organizationName = organizationName;
  }
  if (robotPartCount != null) {
    $result.robotPartCount = robotPartCount;
  }
  if (organizationCount != null) {
    $result.organizationCount = organizationCount;
  }
  if (onlyUsedByOwner != null) {
    $result.onlyUsedByOwner = onlyUsedByOwner;
  }
  if (visibility != null) {
    $result.visibility = visibility;
  }
  if (lastUpdated != null) {
    $result.lastUpdated = lastUpdated;
  }
  return $result;
}