class OrderDetailsMainResponse { List? bill; int? error; String? message; OrderDetailsMainResponse({this.bill, this.error, this.message}); OrderDetailsMainResponse.fromJson(Map json) { if (json['bill'] != null) { bill = []; json['bill'].forEach((v) { bill!.add(new Bill.fromJson(v)); }); } error = json['error']; message = json['message']; } Map toJson() { final Map data = new Map(); if (this.bill != null) { data['bill'] = this.bill!.map((v) => v.toJson()).toList(); } data['error'] = this.error; data['message'] = this.message; return data; } } class Bill { String? dispAddress; String? tenure; Bill({this.dispAddress, this.tenure}); Bill.fromJson(Map json) { dispAddress = json['disp_address']; tenure = json['tenure']; } Map toJson() { final Map data = new Map(); data['disp_address'] = this.dispAddress; data['tenure'] = this.tenure; return data; } }