toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  if (_$data.containsKey('login')) {
    final l$login = login;
    result$data['login'] = l$login?.toJson();
  }
  if (_$data.containsKey('signup')) {
    final l$signup = signup;
    result$data['signup'] = l$signup?.toJson();
  }
  if (_$data.containsKey('search')) {
    final l$search = search;
    result$data['search'] = l$search?.toJson();
  }
  if (_$data.containsKey('share')) {
    final l$share = share;
    result$data['share'] = l$share?.toJson();
  }
  if (_$data.containsKey('earn_virtual_currency')) {
    final l$earn_virtual_currency = earn_virtual_currency;
    result$data['earn_virtual_currency'] = l$earn_virtual_currency?.toJson();
  }
  if (_$data.containsKey('spend_virtual_currency')) {
    final l$spend_virtual_currency = spend_virtual_currency;
    result$data['spend_virtual_currency'] =
        l$spend_virtual_currency?.toJson();
  }
  if (_$data.containsKey('add_payment_info')) {
    final l$add_payment_info = add_payment_info;
    result$data['add_payment_info'] = l$add_payment_info?.toJson();
  }
  if (_$data.containsKey('add_shipping_info')) {
    final l$add_shipping_info = add_shipping_info;
    result$data['add_shipping_info'] = l$add_shipping_info?.toJson();
  }
  if (_$data.containsKey('add_to_cart')) {
    final l$add_to_cart = add_to_cart;
    result$data['add_to_cart'] = l$add_to_cart?.toJson();
  }
  if (_$data.containsKey('add_to_wishlist')) {
    final l$add_to_wishlist = add_to_wishlist;
    result$data['add_to_wishlist'] = l$add_to_wishlist?.toJson();
  }
  if (_$data.containsKey('begin_checkout')) {
    final l$begin_checkout = begin_checkout;
    result$data['begin_checkout'] = l$begin_checkout?.toJson();
  }
  if (_$data.containsKey('generate_lead')) {
    final l$generate_lead = generate_lead;
    result$data['generate_lead'] = l$generate_lead?.toJson();
  }
  if (_$data.containsKey('purchase')) {
    final l$purchase = purchase;
    result$data['purchase'] = l$purchase?.toJson();
  }
  if (_$data.containsKey('refund')) {
    final l$refund = refund;
    result$data['refund'] = l$refund?.toJson();
  }
  if (_$data.containsKey('remove_from_cart')) {
    final l$remove_from_cart = remove_from_cart;
    result$data['remove_from_cart'] = l$remove_from_cart?.toJson();
  }
  if (_$data.containsKey('select_item')) {
    final l$select_item = select_item;
    result$data['select_item'] = l$select_item?.toJson();
  }
  if (_$data.containsKey('view_cart')) {
    final l$view_cart = view_cart;
    result$data['view_cart'] = l$view_cart?.toJson();
  }
  if (_$data.containsKey('view_item')) {
    final l$view_item = view_item;
    result$data['view_item'] = l$view_item?.toJson();
  }
  return result$data;
}