Donation class

Donation attached to a ChatMessage.

Annotations

Constructors

Donation({required DonationId id, required Sum amount, OperationId? operation})
const
Donation.fromJson(Map<String, dynamic> json)
Constructs a Donation from the provided json.
factory

Properties

amount Sum
Sum of this Donation.
final
hashCode int
The hash code for this object.
no setterinherited
id DonationId
Unique ID of this Donation.
final
operation OperationId?
OperationId representing this Donation.
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, dynamic>
Returns a Map representing this Donation.
toString() String
A string representation of this object.
override

Operators

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