toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final amount = this.amount;
  final percentage = this.percentage;
  final type = this.type;
  return {'amount': ?amount, 'percentage': ?percentage, 'type': ?type};
}