toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "uuid": uuid == null ? null : uuid,
    "deposit_user_id": depositUserId == null ? null : depositUserId,
    "name": name == null ? null : name,
    "description": description == null ? null : description,
    "country": country == null ? null : country,
    "return_policy": returnPolicy == null ? null : returnPolicy,
    "shipping_policy": shippingFee == null ? null : shippingFee,
    "full_refund": fullRefund,
    "shipping_fee": shippingFee,
    "tax_percent": taxPercent,
    "tax_id": taxId,
    "contact_address": contactAddress,
    "contact_info": contactInfo,
    "state": state == null ? null : state,
    "city": city == null ? null : city,
    "street_address": streetAddress == null ? null : streetAddress,
    "zip": zip == null ? null : zip,
    "category": category,
    "currency": currency == null ? null : currency,
    "support_email": supportEmail == null ? null : supportEmail,
    "logo": logo == null ? null : logo,
    "meta": meta,
    "status": status == null ? null : status,
    "deleted_at": deletedAt,
    "created_at": createdAt == null ? null : createdAt!.toIso8601String(),
    "updated_at": updatedAt == null ? null : updatedAt!.toIso8601String(),
    "wallet_amount": walletAmount == null ? null : walletAmount,
    "wallet_amount_pending": walletAmountPending == null ? null : walletAmountPending,
};