toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['accountId'] = this.accountId;
  if (this.products != null) {
    data['products'] = this.products.map((v) => v.toJson()).toList();
  }
  data['status'] = this.status;
  return data;
}