toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['proId'] = this.proId;
  data['proDisplayName'] = this.proDisplayName;
  data['proThumbnail'] = this.proThumbnail;
  data['proUniqueId'] = this.proUniqueId;
  data['rating'] = this.rating;
  data['firebaseId'] = this.firebaseId;
  data['allowChat'] = this.allowChat;
  data['serviceId'] = this.serviceId;
  data['serviceLabel'] = this.serviceLabel;
  data['serviceInfos'] = this.serviceInfos;
  data['thumbnailService'] = this.thumbnailService;
  data['serviceTypeId'] = this.serviceTypeId;
  data['serviceName'] = this.serviceName;
  data['lat'] = this.lat;
  data['lng'] = this.lng;
  data['actualDistance'] = this.actualDistance;
  if (this.subcat != null) {
    data['subcat'] = this.subcat!.map((v) => v.toJson()).toList();
  }
  return data;
}