toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
"\$id": $id,
"\$createdAt": $createdAt,
"\$updatedAt": $updatedAt,
"name": name,
"teamId": teamId,
"region": region,
"devKeys": devKeys.map((p) => p.toMap()).toList(),
"smtpEnabled": smtpEnabled,
"smtpSenderName": smtpSenderName,
"smtpSenderEmail": smtpSenderEmail,
"smtpReplyToName": smtpReplyToName,
"smtpReplyToEmail": smtpReplyToEmail,
"smtpHost": smtpHost,
"smtpPort": smtpPort,
"smtpUsername": smtpUsername,
"smtpPassword": smtpPassword,
"smtpSecure": smtpSecure,
"pingCount": pingCount,
"pingedAt": pingedAt,
"labels": labels,
"status": status,
"authMethods": authMethods.map((p) => p.toMap()).toList(),
"services": services.map((p) => p.toMap()).toList(),
"protocols": protocols.map((p) => p.toMap()).toList(),
"blocks": blocks.map((p) => p.toMap()).toList(),
"consoleAccessedAt": consoleAccessedAt,
"billingLimits": billingLimits?.toMap(),
"oAuth2ServerEnabled": oAuth2ServerEnabled,
"oAuth2ServerAuthorizationUrl": oAuth2ServerAuthorizationUrl,
"oAuth2ServerScopes": oAuth2ServerScopes,
"oAuth2ServerAccessTokenDuration": oAuth2ServerAccessTokenDuration,
"oAuth2ServerRefreshTokenDuration": oAuth2ServerRefreshTokenDuration,
"oAuth2ServerPublicAccessTokenDuration":
oAuth2ServerPublicAccessTokenDuration,
"oAuth2ServerPublicRefreshTokenDuration":
oAuth2ServerPublicRefreshTokenDuration,
"oAuth2ServerConfidentialPkce": oAuth2ServerConfidentialPkce,
"oAuth2ServerDiscoveryUrl": oAuth2ServerDiscoveryUrl,
};
}