toJson method
Returns a JSON-serializable representation of this object.
Implementation
Map<String, dynamic> toJson() {
final sms = smsRegionConfig;
final emailPrivacy = emailPrivacyConfig;
final json = <String, dynamic>{
'tenantId': tenantId,
if (displayName != null) 'displayName': displayName,
if (_emailSignInConfig != null)
'emailSignInConfig': _emailSignInConfig.toJson(),
if (_multiFactorConfig != null)
'multiFactorConfig': _multiFactorConfig.toJson(),
'anonymousSignInEnabled': anonymousSignInEnabled,
if (testPhoneNumbers != null) 'testPhoneNumbers': testPhoneNumbers,
if (sms != null) 'smsRegionConfig': sms.toJson(),
if (_recaptchaConfig != null)
'recaptchaConfig': _recaptchaConfig.toJson(),
if (_passwordPolicyConfig != null)
'passwordPolicyConfig': _passwordPolicyConfig.toJson(),
if (emailPrivacy != null) 'emailPrivacyConfig': emailPrivacy.toJson(),
};
return json;
}