Condition class

Condition contains details for one aspect of the current state of this API Resource.

Constructors

Condition({required DateTime lastTransitionTime, required String message, int? observedGeneration, required String reason, required String status, required String type})
The main constructor.
const
Condition.fromJson(Map<String, dynamic> json)
Creates a Condition from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
lastTransitionTime DateTime
LastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
final
message String
Message is a human readable message indicating details about the transition. This may be an empty string.
final
observedGeneration int?
ObservedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditionsx.observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
final
reason String
Reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
Status of the condition, one of True, False, Unknown.
final
type String
Type of condition in CamelCase or in foo.example.com/CamelCase.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a Condition 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<Condition>
Creates a list of Condition from JSON data.