ScaleSpec class

ScaleSpec describes the attributes of a scale subresource.

Constructors

ScaleSpec({int? replicas})
The main constructor.
const
ScaleSpec.fromJson(Map<String, dynamic> json)
Creates a ScaleSpec from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
replicas int?
Desired number of instances for the scaled object.
final
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, Object>
Converts a ScaleSpec instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<ScaleSpec>
Creates a list of ScaleSpec from JSON data.