Credit constructor
Constructor for the Credit class.
The constructor initializes a Credit object with optional named parameters:
role
: The role attribute of the credit.scheme
: The scheme attribute of the credit.value
: The value of the credit.
All parameters are optional and can be set to null if not provided.
Implementation
Credit({
this.role,
this.scheme,
this.value,
});