toJson method
Implementation
Map<String, dynamic> toJson() {
final cents = this.cents;
final dollars = this.dollars;
final tenthFractionsOfACent = this.tenthFractionsOfACent;
return {
if (cents != null) 'Cents': cents,
if (dollars != null) 'Dollars': dollars,
if (tenthFractionsOfACent != null)
'TenthFractionsOfACent': tenthFractionsOfACent,
};
}