toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'seller'] = this.seller;
    json[r'code'] = this.code;
    json[r'quantity'] = this.quantity;
    json[r'price'] = this.price;
    json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
  return json;
}