Robot constructor

Robot({
  1. String? id,
  2. String? name,
  3. String? location,
  4. Timestamp? lastAccess,
  5. Timestamp? createdOn,
})

Implementation

factory Robot({
  $core.String? id,
  $core.String? name,
  $core.String? location,
  $44.Timestamp? lastAccess,
  $44.Timestamp? createdOn,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (name != null) {
    $result.name = name;
  }
  if (location != null) {
    $result.location = location;
  }
  if (lastAccess != null) {
    $result.lastAccess = lastAccess;
  }
  if (createdOn != null) {
    $result.createdOn = createdOn;
  }
  return $result;
}