Deprecation class

Deprecation info.

Annotations
  • @JsonSerializable(createFactory: true, createToJson: true, explicitToJson: true)

Constructors

Deprecation({required String sinceVersion, required String reason, String? plannedRemovalVersion})
Create a new deprecation info.
const
Deprecation.fromJson(Map<String, dynamic> json)
Deprecation info from JSON factory constructor.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
plannedRemovalVersion String?
Planned removal version.
final
reason String
Reason.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sinceVersion String
Since version.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Deprecation info as JSON map.
toString() String
Deprecation info as JSON string.
override

Operators

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