toJSON method

  1. @override
Map<String, dynamic> toJSON()

Implementation

@override
Map<String, dynamic> toJSON() {
  Map<String, dynamic> json = {};
  if (amount != null) {
    json['amount'] = amount?.toJSONBody();
  }
  if (repeat != null) {
    json['repeat'] = repeat?.toJSON();
  }
  if (scheduled != null) {
    json['scheduled'] = scheduled?.toUtc().toIso8601String();
  }
  return json;
}