toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'name': name.map((i) => i.toJson()).toList(),
  'phone': phone,
  'www': www,
  'instagram': instagram,
  'telegram': telegram,
  'desc': desc.map((i) => i.toJson()).toList(),
  'descTitle': descTitle.map((i) => i.toJson()).toList(),
  'address': address,
  'visible': visible,
  'imageUpperServerPath': imageUpperServerPath,
  'imageUpperLocalFile': imageUpperLocalFile,
  'logoServerPath': logoServerPath,
  'logoLocalFile': logoLocalFile,
  'gallery': gallery.map((i) => i.toJson()).toList(),
  'workTime': workTime.map((i) => i.toJson()).toList(),
  'category': category,
  "login" : login,
  "tax" : tax,
  "route" : route.map((i){
    return {'lat': i.latitude, 'lng': i.longitude};
  }).toList(),
  'available': available,
  'addon': addon.map((i) => i.toJson()).toList(),
  'articles': articles,
  //
  'useMaximumServices': useMaximumServices,
  'maxServices': maxServices,
  'useMaxAddonInOneService': useMaxAddonInOneService,
  'maxAddonInOneService': maxAddonInOneService,
  'useMaximumProducts': useMaximumProducts,
  'maxProducts': maxProducts,
  'useMinPurchaseAmount': useMinPurchaseAmount,
  'minPurchaseAmount': minPurchaseAmount,
  'useMaxPurchaseAmount': useMaxPurchaseAmount,
  'maxPurchaseAmount': maxPurchaseAmount,
  'acceptPaymentInCash': acceptPaymentInCash,
  'acceptOnlyInWorkArea': acceptOnlyInWorkArea,
};