toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  final l$pos = pos;
  result$data['pos'] = l$pos;
  if (_$data.containsKey('bookingType')) {
    final l$bookingType = bookingType;
    result$data['bookingType'] = l$bookingType;
  }
  if (_$data.containsKey('bookTime')) {
    final l$bookTime = bookTime;
    result$data['bookTime'] = l$bookTime?.toJson();
  }
  if (_$data.containsKey('bookingMaxCapacity')) {
    final l$bookingMaxCapacity = bookingMaxCapacity;
    result$data['bookingMaxCapacity'] = l$bookingMaxCapacity;
  }
  if (_$data.containsKey('mobileBooking')) {
    final l$mobileBooking = mobileBooking;
    result$data['mobileBooking'] = l$mobileBooking;
  }
  if (_$data.containsKey('portalBooking')) {
    final l$portalBooking = portalBooking;
    result$data['portalBooking'] = l$portalBooking;
  }
  if (_$data.containsKey('facebookBooking')) {
    final l$facebookBooking = facebookBooking;
    result$data['facebookBooking'] = l$facebookBooking;
  }
  if (_$data.containsKey('nonBookableDays')) {
    final l$nonBookableDays = nonBookableDays;
    result$data['nonBookableDays'] =
        l$nonBookableDays?.map((e) => e.toJson()).toList();
  }
  if (_$data.containsKey('settingsAttributes')) {
    final l$settingsAttributes = settingsAttributes;
    result$data['settingsAttributes'] =
        l$settingsAttributes?.map((e) => e.toJson()).toList();
  }
  return result$data;
}