import 'package:cloud_firestore/cloud_firestore.dart'; class WithdrawalModel { String? amount; String? adminNote; String? note; String? id; Timestamp? paidDate; String? paymentStatus; String? vendorID; String? driverID; String? withdrawMethod; WithdrawalModel({this.amount, this.adminNote, this.note, this.id, this.paidDate, this.driverID, this.paymentStatus, this.vendorID, this.withdrawMethod}); WithdrawalModel.fromJson(Map json) { amount = json['amount'] == null ? "0.0" : json['amount'].toString(); adminNote = json['adminNote']; note = json['note']; id = json['id']; paidDate = json['paidDate']; paymentStatus = json['paymentStatus']; vendorID = json['vendorID']; withdrawMethod = json['withdrawMethod']; driverID = json['driverID']; } Map toJson() { final Map data = {}; data['amount'] = amount; data['adminNote'] = adminNote; data['note'] = note; data['id'] = id; data['paidDate'] = paidDate; data['paymentStatus'] = paymentStatus; data['vendorID'] = vendorID; data['driverID'] = driverID; data['withdrawMethod'] = withdrawMethod; return data; } }