toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'order_id'] = this.orderId;
  json[r'seller'] = this.seller;
  json[r'buyer'] = this.buyer;
  json[r'code'] = this.code;
  json[r'quantity'] = this.quantity;
  json[r'price'] = this.price;
  json[r'sold_at'] = this.soldAt.toUtc().toIso8601String();
  return json;
}