toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  if (emailPasswordEnforcementState != null)
    'emailPasswordEnforcementState': emailPasswordEnforcementState!.value,
  if (phoneEnforcementState != null)
    'phoneEnforcementState': phoneEnforcementState!.value,
  if (managedRules != null)
    'managedRules': managedRules!.map((e) => e.toJson()).toList(),
  if (recaptchaKeys != null)
    'recaptchaKeys': recaptchaKeys!.map((e) => e.toJson()).toList(),
  if (useAccountDefender != null) 'useAccountDefender': useAccountDefender,
  if (useSmsBotScore != null) 'useSmsBotScore': useSmsBotScore,
  if (useSmsTollFraudProtection != null)
    'useSmsTollFraudProtection': useSmsTollFraudProtection,
  if (smsTollFraudManagedRules != null)
    'smsTollFraudManagedRules': smsTollFraudManagedRules!
        .map((e) => e.toJson())
        .toList(),
};