toJSON method

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

Implementation

@override
Map<String, dynamic> toJSON() {
  Map<String, dynamic> json = {};
  if (merchant != null) {
    json['merchant'] = merchant;
  }
  if (customer != null) {
    json['customer'] = customer;
  }
  return json;
}