DroneRepo constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const DroneRepo({
  1. @Default('') String gitSshUrl,
  2. @Default('') String gitHttpUrl,
  3. @Default('') String defaultBranch,
  4. @Default('') String configPath,
  5. @Default('') String uid,
  6. @Default('') String namespace,
  7. @Default('') String name,
  8. @Default('') String slug,
  9. @Default('') String scm,
  10. @Default('') String link,
  11. @Default(Visibility.private) Visibility visibility,
  12. @Default(0) int id,
  13. @Default(0) int userId,
  14. @Default(0) int timeout,
  15. @Default(0) int counter,
  16. @Default(0) int synced,
  17. @Default(0) int created,
  18. @Default(0) int updated,
  19. @Default(0) int version,
  20. @Default(false) bool ignoreForks,
  21. @Default(false) bool ignorePullRequests,
  22. @Default(false) bool autoCancelPullRequests,
  23. @Default(false) bool autoCancelPushes,
  24. @Default(false) bool autoCancelRunning,
  25. @Default(false) bool archived,
  26. @Default(false) bool private,
  27. @Default(false) bool active,
  28. @Default(false) bool trusted,
  29. @Default(false) bool protected,
  30. @Default(null) DronePermission? permissions,
  31. @Default(null) DroneBuild? build,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake)
const factory DroneRepo({
  @Default('') String gitSshUrl,
  @Default('') String gitHttpUrl,
  @Default('') String defaultBranch,
  @Default('') String configPath,
  @Default('') String uid,
  @Default('') String namespace,
  @Default('') String name,
  @Default('') String slug,
  @Default('') String scm,
  @Default('') String link,
  @Default(Visibility.private) Visibility visibility,
  @Default(0) int id,
  @Default(0) int userId,
  @Default(0) int timeout,
  @Default(0) int counter,
  @Default(0) int synced,
  @Default(0) int created,
  @Default(0) int updated,
  @Default(0) int version,
  @Default(false) bool ignoreForks,
  @Default(false) bool ignorePullRequests,
  @Default(false) bool autoCancelPullRequests,
  @Default(false) bool autoCancelPushes,
  @Default(false) bool autoCancelRunning,
  @Default(false) bool archived,
  @Default(false) bool private,
  @Default(false) bool active,
  @Default(false) bool trusted,
  @Default(false) bool protected,
  @Default(null) DronePermission? permissions,
  @Default(null) DroneBuild? build,
}) = _DroneRepo;