import 'Result.dart'; class BookingRequestResponse { BookingRequestResponse({ this.result, this.currentPage, this.totalItems, this.totalPages,}); BookingRequestResponse.fromJson(dynamic json) { if (json['result'] != null) { result = []; json['result'].forEach((v) { result?.add(ServiceResult.fromJson(v)); }); } currentPage = json['currentPage']; totalItems = json['totalItems']; totalPages = json['totalPages']; } List? result; int? currentPage; int? totalItems; int? totalPages; Map toJson() { final map = {}; if (result != null) { map['result'] = result?.map((v) => v.toJson()).toList(); } map['currentPage'] = currentPage; map['totalItems'] = totalItems; map['totalPages'] = totalPages; return map; } }