Map<String, dynamic> toJson() { final recoveryMechanisms = this.recoveryMechanisms; return { if (recoveryMechanisms != null) 'RecoveryMechanisms': recoveryMechanisms, }; }