toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  final map = super.toJson();

  map['trans_date'] = transactionDate == null ? "" : DateFormat("yyyy-MM-dd HH:mm:ss").format(transactionDate!);
  map['descriptor'] = descriptor;
  return map;
}