toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
'\$id': $id,
'\$createdAt': $createdAt,
'\$updatedAt': $updatedAt,
'name': name,
'description': description,
'teamId': teamId,
'logo': logo,
'url': url,
'legalName': legalName,
'legalCountry': legalCountry,
'legalState': legalState,
'legalCity': legalCity,
'legalAddress': legalAddress,
'legalTaxId': legalTaxId,
'authDuration': authDuration,
'authLimit': authLimit,
'authSessionsLimit': authSessionsLimit,
'authPasswordHistory': authPasswordHistory,
'authPasswordDictionary': authPasswordDictionary,
'authPersonalDataCheck': authPersonalDataCheck,
'oAuthProviders': oAuthProviders.map((x) => x.toMap()).toList(),
'platforms': platforms.map((x) => x.toMap()).toList(),
'webhooks': webhooks.map((x) => x.toMap()).toList(),
'keys': keys.map((x) => x.toMap()).toList(),
'smtpEnabled': smtpEnabled,
'smtpSenderName': smtpSenderName,
'smtpSenderEmail': smtpSenderEmail,
'smtpReplyTo': smtpReplyTo,
'smtpHost': smtpHost,
'smtpPort': smtpPort,
'smtpUsername': smtpUsername,
'smtpPassword': smtpPassword,
'smtpSecure': smtpSecure,
};
}