Map<String, dynamic> toJson() { return { 'email': emailId, 'required': required ?1:0 // Add other properties if needed }; }