Service class Null safety

An individual service.

A service contains a name and optional metadata. A service must exist before endpoints can be added to it.

Constructors

Service({Map<String, String>? annotations, List<Endpoint>? endpoints, String? name})
Service.fromJson(Map _json)

Properties

annotations Map<String, String>?
Annotations for the service. [...]
read / write
endpoints List<Endpoint>?
Endpoints associated with this service. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
name String?
The resource name for the service in the format `projects / * /locations / [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited