toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"id": id,
"addTags": addTags == null ? <dynamic>[] : List<dynamic>.from(addTags!.map((int x) => x)),
"removeTags": removeTags == null ? <dynamic>[] : List<dynamic>.from(removeTags!.map((int x) => x)),
"tags": tags == null ? <dynamic>[] : List<dynamic>.from(tags!.map((int x) => x)),
"debtAmount": debtAmount,
"creditorAmount": creditorAmount,
"paidAmount": paidAmount,
"penaltyAmount": penaltyAmount,
"userId": userId,
"contractId": contractId,
"penaltyPrecentEveryDate": penaltyPrecentEveryDate,
"dueDate": dueDate?.toIso8601String(),
"detail1": detail1,
"detail2": detail2,
"adminUserIds": adminUserIds == null ? <dynamic>[] : List<dynamic>.from(adminUserIds!.map((String x) => x)),
"addAdminUserIds": addAdminUserIds == null ? <dynamic>[] : List<dynamic>.from(addAdminUserIds!.map((String x) => x)),
"removeAdminUserIds": removeAdminUserIds == null ? <dynamic>[] : List<dynamic>.from(removeAdminUserIds!.map((String x) => x)),
};