toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
"\$id": $id,
"\$createdAt": $createdAt,
"\$updatedAt": $updatedAt,
"\$permissions": $permissions,
"teamId": teamId,
"aggregationId": aggregationId,
"plan": plan,
"usage": usage.map((p) => p.toMap()).toList(),
"amount": amount,
"tax": tax,
"taxAmount": taxAmount,
"vat": vat,
"vatAmount": vatAmount,
"grossAmount": grossAmount,
"creditsUsed": creditsUsed,
"currency": currency,
"clientSecret": clientSecret,
"status": status,
"lastError": lastError,
"dueAt": dueAt,
"from": from,
"to": to,
};
}