CreateReq class

Constructors

CreateReq({String? description, String? name, String? project, bool? public})
Returns a new CreateReq instance.

Properties

description ↔ String?
Description is a free-form blurb, max 4KiB.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
Name is the repo's handle, unique within the scope, and the last segment of both clone URLs. Must match ^A-Za-z0-9._-{0,63}$; a trailing ".git" is stripped first. Required.
getter/setter pair
project ↔ String?
Project narrows the repo to a sub-scope of the org. Omit it to use the caller's own X-Project-Id scope; it can never widen past the caller's org.
getter/setter pair
public ↔ bool?
Public grants ANONYMOUS read (fetch) only; push and the whole control plane stay org-authed. Defaults to false.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → CreateReq?
Returns a new CreateReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CreateReq>
mapFromJson(dynamic json) → Map<String, CreateReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CreateReq>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.